Skip to content

Commit 072e903

Browse files
committed
chore: manual fixups post-copybara
1 parent 8f92aea commit 072e903

File tree

3 files changed

+35
-26
lines changed

3 files changed

+35
-26
lines changed

cmd/aspect/root/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ go_library(
3333
"//cmd/aspect/sync",
3434
"//cmd/aspect/test",
3535
"//cmd/aspect/version",
36+
"//docs/help/topics",
3637
"//pkg/aspect/root/flags",
3738
"//pkg/ioutils",
3839
"//pkg/plugin/system",
39-
"//docs/versioned/cli/help",
4040
"@com_github_fatih_color//:color",
4141
"@com_github_mattn_go_isatty//:go-isatty",
4242
"@com_github_spf13_cobra//:cobra",

cmd/aspect/root/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ import (
5151
"aspect.build/cli/cmd/aspect/sync"
5252
"aspect.build/cli/cmd/aspect/test"
5353
"aspect.build/cli/cmd/aspect/version"
54+
help_docs "aspect.build/cli/docs/help/topics"
5455
"aspect.build/cli/pkg/aspect/root/flags"
5556
"aspect.build/cli/pkg/ioutils"
5657
"aspect.build/cli/pkg/plugin/system"
57-
help_docs "github.com/aspect-build/silo/docs/versioned/cli/help"
5858
)
5959

6060
var (

docs/aspect_outputs.md

Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,48 @@ Print paths to declared output files
77

88
### Synopsis
99

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.
1111

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.
2020

2121
```
22-
aspect outputs <target> [mnemonic] [flags]
22+
aspect outputs <expression> [mnemonic] [flags]
2323
```
2424

2525
### Examples
2626

2727
```
2828
# 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
4352
```
4453

4554
### Options

0 commit comments

Comments
 (0)