-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Map target paths and target exclude paths for archive/git refs (#3003)
In CLI versions pre-1.32.0, for archive and git refs, we would map the root of the bucket of archive and git refs to the `subDirPath`, which is inconsistent with the behavior for dir refs (which maps target paths and target exclude paths to the execution context). In 1.32.0, we made changes to handle subDirPath, target paths, and target exclude paths in a unified way, however this is not backwards compatible with pre-1.32.0 versions. So, in order to be backwards compatible, we need to remap the target paths and target exclude paths. I explored an option to check of the subDirPath contains the target paths and target exclude paths before remapping, however this is brittle, since we could hit an edge case with directories that have the same name nested: ``` . └── proto └── foo └── foo ``` Tests have been adjusted to reflect this change. --------- Co-authored-by: Nick Snyder <[email protected]> Co-authored-by: bufdev <[email protected]>
- Loading branch information
1 parent
d88de38
commit a6ff911
Showing
5 changed files
with
43 additions
and
9 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
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
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