Skip to content

Conversation

hamishmack
Copy link
Collaborator

This change makes it so sha256map = null and sha256map = {} work the same. When looking up a sha256 in the map it will only now fail if the map contains an entry for the url, but not for the tag required.

This change makes it so `sha256map = null` and `sha256map = {}` work the same.  When looking up a sha256 in the map it will only now fail if the map  contains an entry for the url, but not for the tag required.
Copy link
Collaborator

@michaelpj michaelpj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks plausible to me. It's also used in stack-cache-generator.

You could also simplify things now by requiring sha256map to be non-null and using {} as the default value instead of null, unsure if that's worth it.

@hamishmack
Copy link
Collaborator Author

You could also simplify things now by requiring sha256map to be non-null and using {} as the default value instead of null, unsure if that's worth it.

That would be nice, but I'm going to leave it for now.

@hamishmack hamishmack merged commit e02f01e into master May 24, 2023
@hamishmack hamishmack deleted the hkm/sha256map-default branch June 1, 2023 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants