Do we currently have a mechanism to add arbitrary ...
# development
w
Do we currently have a mechanism to add arbitrary files to the sandbox while we’re running built-in commands?
h
What is an example?
w
If I run
pants lint ::
and want to ensure a file exists in the sandbox that runs in (myconfig.json)
h
If it's a dependency it should end up in there, no? If it's config for some linter then the rule that runs the linter should know to find it and add it into the digest
w
https://github.com/pantsbuild/pants/issues/22743 This would be a motivating example, but just the most recent. I've had this idea come up before - where, instead of needing to ensure every backend stays up to date with every possible usage, sometimes it's easier to just point at a directory or file to include "stuff" I think the GH example mentions
extra_files
or something similar. The shell and adhoc backends typically have this sort of functionality