@@ -7,39 +7,48 @@ Print paths to declared output files
7
7
8
8
### Synopsis
9
9
10
- Queries for the outputs declared by actions generated by the given target.
10
+ Queries for the outputs declared by actions generated by the given target or the target(s) in the given query expression .
11
11
12
- Prints each output file on a line, with the mnemonic of the action that produces it,
13
- followed by a path to the file, relative to the workspace root.
14
-
15
- You can optionally provide an extra argument, which is a filter on the mnemonic.
16
-
17
- 'ExecutableHash' is a special value for the mnemonic. This combines the ExecutableSymlink and
18
- SourceSymlinkManifest mnemonics, then hashes the outputs of these two. This provides a good hash
19
- for an executable target to determine if it has changed.
12
+ Prints each output file on a line, with the mnemonic of the action that produces it,
13
+ followed by a path to the file, relative to the workspace root.
14
+
15
+ You can optionally provide an extra argument, which is a filter on the mnemonic.
16
+
17
+ 'ExecutableHash' is a special value for the mnemonic. This combines the ExecutableSymlink and
18
+ SourceSymlinkManifest mnemonics, then hashes the outputs of these two. This provides a good hash
19
+ for an executable target to determine if it has changed.
20
20
21
21
```
22
- aspect outputs <target > [mnemonic] [flags]
22
+ aspect outputs <expression > [mnemonic] [flags]
23
23
```
24
24
25
25
### Examples
26
26
27
27
```
28
28
# Show all outputs of the //cli/pro target, which is a go_binary:
29
-
30
- % aspect outputs //cli/pro
31
-
32
- GoCompilePkg bazel-out/k8-fastbuild/bin/cli/pro/pro.a
33
- GoCompilePkg bazel-out/k8-fastbuild/bin/cli/pro/pro.x
34
- GoLink bazel-out/k8-fastbuild/bin/cli/pro/pro_/pro
35
- SourceSymlinkManifest bazel-out/k8-fastbuild/bin/cli/pro/pro_/pro.runfiles_manifest
36
- SymlinkTree bazel-out/k8-fastbuild/bin/cli/pro/pro_/pro.runfiles/MANIFEST
37
- Middleman bazel-out/k8-fastbuild/internal/_middlemen/cli_Spro_Spro_U_Spro-runfiles
38
-
39
- # Show just the output of the GoLink action, which is the executable produced by a go_binary:
40
-
41
- % aspect outputs //cli/pro GoLink
42
- bazel-out/k8-fastbuild/bin/cli/pro/pro_/pro
29
+
30
+ % aspect outputs //cli/pro
31
+
32
+ GoCompilePkg bazel-out/k8-fastbuild/bin/cli/pro/pro.a
33
+ GoCompilePkg bazel-out/k8-fastbuild/bin/cli/pro/pro.x
34
+ GoLink bazel-out/k8-fastbuild/bin/cli/pro/pro_/pro
35
+ SourceSymlinkManifest bazel-out/k8-fastbuild/bin/cli/pro/pro_/pro.runfiles_manifest
36
+ SymlinkTree bazel-out/k8-fastbuild/bin/cli/pro/pro_/pro.runfiles/MANIFEST
37
+ Middleman bazel-out/k8-fastbuild/internal/_middlemen/cli_Spro_Spro_U_Spro-runfiles
38
+
39
+ # Show just the output of the GoLink action, which is the executable produced by a go_binary:
40
+
41
+ % aspect outputs //cli/pro GoLink
42
+ bazel-out/k8-fastbuild/bin/cli/pro/pro_/pro
43
+
44
+ # Show the outputs of all targets that contain the 'deliverable' tag
45
+
46
+ % aspect outputs 'attr("tags", "\bdeliverable\b", //...)'
47
+
48
+ ExecutableSymlink bazel-out/darwin-fastbuild/bin/cli/release
49
+ SourceSymlinkManifest bazel-out/darwin-fastbuild/bin/cli/release.runfiles_manifest
50
+ SymlinkTree bazel-out/darwin-fastbuild/bin/cli/release.runfiles/MANIFEST
51
+ Middleman bazel-out/darwin-fastbuild/internal/_middlemen/cli_Srelease-runfiles
43
52
```
44
53
45
54
### Options
0 commit comments