Skip to content

ppx: Remove sensitivity to paths passed on the command line#810

Merged
vouillon merged 1 commit into
ocsigen:masterfrom
Julow:ppx_file_hash_base
Apr 22, 2025
Merged

ppx: Remove sensitivity to paths passed on the command line#810
vouillon merged 1 commit into
ocsigen:masterfrom
Julow:ppx_file_hash_base

Conversation

@Julow

@Julow Julow commented Dec 18, 2024

Copy link
Copy Markdown
Contributor

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

Julow commented Dec 18, 2024

Copy link
Copy Markdown
Contributor Author

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

balat commented Jan 24, 2025

Copy link
Copy Markdown
Member

@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