-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
toolexec: Add required-packages flag
toolexec mode only rewrites packages that have import the errtrace package, and others are silently ignored which can lead to unintended missed rewrites. Accept package selectors of packages that must import errtrace if a rewrite is required. Most of this change is setting up the machinery for toolexec flags: - Set up a new flagset for toolexec flags, which are only parsed once we know we're in toolexec mode. - Include a hash of the flag values in the version key as a previously cached output may not be valid when flags change. E.g., a previous package success should fail if the required-packages flag changes and it contains a package that needs a rewrite but is missing the import.
- Loading branch information
Showing
3 changed files
with
189 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.