Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure that we only hash the env pairs. (#4708)
This corrects the hashing behavior for the global hash if there is an EnvMode specified. The struct now known as `GlobalHashableInputs` contains additional data that is not required to be present in the hash; particularly that `envVars` should be `env.EnvironmentVariablePairs`, not `env.DetailedMap`. This didn't result in user-facing bugs, but it results in unnecessarily partitioned caches when using env modes. We can't hash what is now known as `GlobalHashableInputs` directly, we must grab the components of it that we need, which this does for the (currently) two available hash formats.
- Loading branch information
1 parent
ac30fb1
commit b368f5c
Showing
2 changed files
with
63 additions
and
33 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