Skip to content

Allow hashes with slashes#20

Merged
Zhen-hao merged 1 commit intonatural-transformation:masterfrom
raboof:allow-hashes-with-slashes
Sep 1, 2023
Merged

Allow hashes with slashes#20
Zhen-hao merged 1 commit intonatural-transformation:masterfrom
raboof:allow-hashes-with-slashes

Conversation

@raboof
Copy link
Copy Markdown
Contributor

@raboof raboof commented Aug 30, 2023

The base64 representation of the hash may contain a '/' character, which is invalid in filenames. Replacing it with '_' to avoid the problem.

The base64 representation of the hash may contain a '/' character,
which is invalid in filenames. Replacing it with '_' to avoid the
problem.
@Zhen-hao Zhen-hao merged commit 1c9c43b into natural-transformation:master Sep 1, 2023
@raboof
Copy link
Copy Markdown
Contributor Author

raboof commented Oct 6, 2023

Looking at this again I'm not sure how this could ever have been a problem, as the sha256sum is hex-encoded, not base64-encoded... but I'm fairly confident I saw it fail and get fixed. Planning to revert, test, and if I can't reproduce the original problem PR that revert. Sorry about the noise :)

@roberth
Copy link
Copy Markdown
Collaborator

roberth commented Oct 6, 2023

@raboof I thought the same, but if you're editing a manual-repo.nix file you might want to paste some hashes from Nix in there.

Maybe that's why this is here?

@raboof
Copy link
Copy Markdown
Contributor Author

raboof commented Oct 6, 2023

@raboof I thought the same, but if you're editing a manual-repo.nix file you might want to paste some hashes from Nix in there.

Maybe that's why this is here?

Hmm, possibly, don't remember doing that though

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.

3 participants