Skip to content

Conversation

Julow
Copy link
Contributor

@Julow Julow commented Dec 18, 2024

eliom_ppx_client and eliom_ppx_server could be passed different paths to the same files, as Dune execute commands from different current directories.

However, this might create collisions if two file have the same name.

This was suggested by @vouillon in #803

eliom_ppx_client and eliom_ppx_server could be passed different paths to
the same files, as Dune execute commands from different current
directories.

However, this might create collisions if two file have the same name.
@Julow
Copy link
Contributor Author

Julow commented Dec 18, 2024

This does fix the problem that I described in #803. A reproduction is found by running dune build dist in https://github.com/Julow/ocsigen-tictactoe/tree/move-to-src

@balat
Copy link
Member

balat commented Jan 24, 2025

@vouillon are you happy with this?

@vouillon vouillon merged commit 705cc19 into ocsigen:master Apr 22, 2025
vouillon added a commit that referenced this pull request Apr 22, 2025
Since we only keep the first 36 bits of the string, we get collisions
pretty easily if we use the filename directly.
vouillon added a commit that referenced this pull request Apr 22, 2025
Since we only keep the first 36 bits of the string, we get collisions
pretty easily if we use the filename directly.
vouillon added a commit that referenced this pull request Apr 23, 2025
Fix #810: keep hashing the filename
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