Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Windows error with HTTP components #2159

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

itowlson
Copy link
Contributor

Fixes #2112.

The proposed fix is, on Windows, to save scheme-prefixed digests using an underscore separator, so a digest of sha256:1234 becomes a file name of sha256_1234. Mac and Linux would not be affected.

That said, there seems to be an oddity in the registry cache where some entries have the prefix and others don't - I think HTTP-downloaded components have the prefix and files from OCI don't? It would be nicer to change it to remove the prefix before saving HTTP-downloaded components. But that ended up involving more invasive changes to the download verifier, so I backed it out as being higher risk. I can explore it if people have a strong preference.

@itowlson itowlson force-pushed the fix-windows-invalid-cache-path branch from 09ec923 to 24d8a43 Compare December 11, 2023 21:38
@itowlson itowlson force-pushed the fix-windows-invalid-cache-path branch from 24d8a43 to 3ff7a4c Compare December 11, 2023 22:50
@itowlson itowlson merged commit bfdfabe into fermyon:main Dec 12, 2023
9 checks passed
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.

HTTP component sources do not work on Windows
2 participants