-
-
Notifications
You must be signed in to change notification settings - Fork 644
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix issue with duplicated
BinaryPath
instances passed to `BinaryShi…
…msRequest` (Cherry pick of #21745) (#21759) As reported in #21709, a Docker tool appearing in both the `--docker-tools` and `--docker-optional-tools` options was causing an error with the `create_digest` intrinsic: `Snapshots must be constructed from unique path stats; got duplicates in [Some("docker-credential-ecr-login"), Some("getent"), Some("sw_vers")]` The root cause is that duplicate `BinaryPath` instances were being passed to `BinaryShimsRequest.for_paths` which was then translated eventually into a `create_digest` call with the duplicate paths (which is not permitted). Solution: De-duplicate paths in `BinaryShimsRequest.for_paths` (and sort into stable order for good measure to ensure better cacheability). Closes #21709. --------- Co-authored-by: Tom Dyas <[email protected]>
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 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