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

pkg: Undo change reversing order of env updates #10474

Merged
merged 1 commit into from
May 2, 2024

Conversation

gridbugs
Copy link
Collaborator

@gridbugs gridbugs commented May 1, 2024

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.

Copy link
Collaborator

@Leonidas-from-XIV Leonidas-from-XIV left a 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.

@@ -337,7 +337,7 @@ module Pkg = struct
appearing earlier can overwrite the values of variables set by
packages appearing later. *)
Copy link
Collaborator

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.

Copy link
Collaborator Author

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!
Copy link
Member

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>
@gridbugs gridbugs merged commit e0e23ea into ocaml:main May 2, 2024
26 of 27 checks passed
anmonteiro pushed a commit to anmonteiro/dune that referenced this pull request Nov 17, 2024
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>
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