-
Notifications
You must be signed in to change notification settings - Fork 408
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
Dune subst now tries to guess the project root #4043
Comments
I'll try to bisect this later today! |
Could we ask that |
This will potentially break pinning for every single opam package, including the ones that have been using dune opam file generation so far so I'd advise against this. We can start generating I'm not yet quite clear how it will behave depending on the context but I'm pretty sure it can silently mess things up when pinning a package and give the users a hard time figuring out what's going on. That being said, this decision is not mine to make but I think by doing so we would effictively introduce a universe split as for |
Oh no, sorry, I should have been clearer. It was really that in the futur we generate with the And thank you for pointing that |
#4048 should fix this. |
Expected Behavior
dune subst
should always treat the current working directory as the root of the dune workspace.Actual Behavior
dune subst
which is called for pinned opam packages now tries to guess the root of the project. With pinned packages in a local opam switch, this means that it went all the way back up from inside the./_opam/.opam-switch/build/<package>
to my./dune-project
and failed, for unrelated reasons which allowed me to find out about this bug.It could potentially modify files that it shouldn't modify, use the wrong git history etc...
Reproduction
The installation of csexp should fail on the
dune subst
step because of the local dune-project.Specifications
dune
(output ofdune --version
):2.7.0-428-g00496d33d3
ocaml
(output ofocamlc --version
):4.11.1
The text was updated successfully, but these errors were encountered: