-
Notifications
You must be signed in to change notification settings - Fork 409
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
pkg: Undo change reversing order of env updates #10474
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is in fact very strange, especially as the ocamlfind build definitions don't do anything specific with the environment.
src/dune_rules/pkg_rules.ml
Outdated
@@ -337,7 +337,7 @@ module Pkg = struct | |||
appearing earlier can overwrite the values of variables set by | |||
packages appearing later. *) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this comment needs to be adapted now because it states the reverse of what is happening and that's very confusing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Fixed!
Prepended with trailing sep:Prepended 2nd time with sep | ||
Appended 2nd time without leading sep:Appended without leading sep | ||
Appended 2nd time with leading sep:Appended with leading sep | ||
Hello from the second package! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you leave a comment that this output is incorrect?
In 3ea5444 the order of env updates performed by packages was reversed. This brought the behaviour of dune closer to opam but introduced a regression which prevents ocamlfind from building with dune package management. Here's an issue for tracking investigating why this change caused the regression: ocaml#10473 Signed-off-by: Stephen Sherratt <stephen@sherra.tt>
In 3ea5444 the order of env updates performed by packages was reversed. This brought the behaviour of dune closer to opam but introduced a regression which prevents ocamlfind from building with dune package management. Here's an issue for tracking investigating why this change caused the regression: ocaml#10473 Signed-off-by: Stephen Sherratt <stephen@sherra.tt>
In 3ea5444 the order of env updates performed by packages was reversed. This brought the behaviour of dune closer to opam but introduced a regression which prevents ocamlfind from building with dune package management.
Here's an issue for tracking investigating why this change caused the regression: #10473
I'm proposing we merge this to revert to the old behaviour in the short term and then investigate why changing the order of updates caused the regression.