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 hashing on windows #370

Merged
merged 12 commits into from
Dec 30, 2022
Merged

Fix hashing on windows #370

merged 12 commits into from
Dec 30, 2022

Conversation

mk
Copy link
Member

@mk mk commented Dec 23, 2022

This fixes the nextjournal.clerk.render.hashing/front-end-hash computation that would previously fail on windows. Also set .gitattributes to get the same line endings on windows so the hash is stable on different platforms.

@respatialized
Copy link

Running the most recent commit in this PR locally results in a FileNotFoundException for the GCS lookups to storage.googleapis.com for me.

@mk
Copy link
Member Author

mk commented Dec 30, 2022

@respatialized if you can, I'd appreciate if you could try this once more, using the latest sha on this PR as a git dependency and confirm that

(= "3mXdcLQSNAEFTLdDXoAw47rKytXS"
   ((requiring-resolve 'nextjournal.clerk.render.hashing/front-end-hash)))
;;=> true

@respatialized
Copy link

respatialized commented Dec 30, 2022

@mk Yes, I am able to load clerk and that expression evaluates to true on Windows. ✔️

@mk mk merged commit cc28e1e into main Dec 30, 2022
@mk mk deleted the fix-hashing-on-windows branch December 30, 2022 17:03
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.

None yet

2 participants