Closed tdyas closed 1 week ago
I'll let @benjyw confirm this (since he's 2.22 release manager).
I'll let @benjyw confirm this (since he's 2.22 release manager).
Fine to pull this in to 2.22 in principle, but I still have a correctness concern (See #21051).
Closing since I decided to not backport the workspace_invalidation_sources
support to this branch.
Add support for "workspace invalidation" sources for the
adhoc_tool
andshell_command
target types. This supports allows those targets to depend on the content of files in the repository without materializing those sources in the execution sandbox. This support is intended to be used in conjunction with the workspace environment where execution does not take place in a sandbox.The new field
workspace_invalidation_sources
on both target types is list of globs into the repository. The digest of the referenced files will be inserted as an environment variable in the process executed (which makes it part of the process's cache key).