victorious-island-99180
12/23/2025, 1:56 PMBUILD file, but I'm getting the following error:
InvalidTargetException: BUILD:1: Unrecognized field `dependencies=(':shell-scripts', ':images')` in target //. Valid fields for the target type `shell_command`: ['_sources', 'cache_scope', 'command', 'description', 'environment', 'execution_dependencies', 'experimental_named_caches', 'extra_env_vars', 'log_output', 'output_dependencies', 'output_directories', 'output_files', 'outputs_match_mode', 'path_env_modify', 'root_output_directory', 'runnable_dependencies', 'tags', 'timeout', 'tools', 'workdir', 'workspace_invalidation_sources'].
My pants version matches the docs one, 2.30
Any ideas, have I enabled the wrong backend or something like that?victorious-island-99180
12/23/2025, 1:57 PM[GLOBAL]
pants_version = "2.30.0"
backend_packages = [
"pants.backend.shell",
]wide-midnight-78598
12/23/2025, 2:07 PMdependencies should be one of the more specific deps.
https://www.pantsbuild.org/stable/reference/targets/shell_command
That sample code runs.
FYI, I'm in the process of running through all the docs to look for consistency issues and cleanup, so that would include stuff like thisvictorious-island-99180
12/23/2025, 2:08 PMwide-midnight-78598
12/23/2025, 2:14 PM