Skip to main content
Version: 5.1.x

aspect outputs

Print paths to declared output files

Synopsis

Queries for the outputs declared by actions generated by the given target.

Prints each output file on a line, with the mnemonic of the action that produces it, followed by a path to the file, relative to the workspace root.

You can optionally provide an extra argument, which is a filter on the mnemonic.

'ExecutableHash' is a special value for the mnemonic. This combines the ExecutableSymlink and SourceSymlinkManifest mnemonics, then hashes the outputs of these two. This provides a good hash for an executable target to determine if it has changed.

aspect outputs <target> [mnemonic] [flags]

Examples

# Show all outputs of the //cli/pro target, which is a go_binary:

% aspect outputs //cli/pro

GoCompilePkg bazel-out/k8-fastbuild/bin/cli/pro/pro.a
GoCompilePkg bazel-out/k8-fastbuild/bin/cli/pro/pro.x
GoLink bazel-out/k8-fastbuild/bin/cli/pro/pro_/pro
SourceSymlinkManifest bazel-out/k8-fastbuild/bin/cli/pro/pro_/pro.runfiles_manifest
SymlinkTree bazel-out/k8-fastbuild/bin/cli/pro/pro_/pro.runfiles/MANIFEST
Middleman bazel-out/k8-fastbuild/internal/_middlemen/cli_Spro_Spro_U_Spro-runfiles

# Show just the output of the GoLink action, which is the executable produced by a go_binary:

% aspect outputs //cli/pro GoLink
bazel-out/k8-fastbuild/bin/cli/pro/pro_/pro

Options

  -h, --help   help for outputs

Options inherited from parent commands

      --aspect:config string   User-specified Aspect CLI config file. /dev/null indicates that all further --aspect:config flags will be ignored.
--aspect:interactive Interactive mode (e.g. prompts for user input)

SEE ALSO