HomeDocs
DocsCommunityTestimonialsUsersGitHubTwitterBlogJobsTermsPrivacyCookies
TermsPrivacyCookies
Hey! These docs are for version 2.8, which is no longer officially supported. Click here for the latest version, 2.15!
./pants filedeps [args]

List all source and BUILD files a target depends on.

Config section: [filedeps]

Basic options

output_file

--filedeps-output-file=<path>
PANTS_FILEDEPS_OUTPUT_FILE
default: None

Output the goal's stdout to this file. If unspecified, outputs to stdout.


sep

--filedeps-sep=<separator>
PANTS_FILEDEPS_SEP
default: \n

String to use to separate lines in line-oriented output.


absolute

--[no-]filedeps-absolute
PANTS_FILEDEPS_ABSOLUTE
default: False

If True, output with absolute path. If unspecified, output with path relative to the build root.


globs

--[no-]filedeps-globs
PANTS_FILEDEPS_GLOBS
default: False

Instead of outputting filenames, output the original globs used in the BUILD file. This will not include exclude globs (i.e. globs that start with !).


transitive

--[no-]filedeps-transitive
PANTS_FILEDEPS_TRANSITIVE
default: False

If True, list files from all dependencies, including transitive dependencies. If unspecified, only list files from the target.


Advanced options

None

Deprecated options

None