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

Don't enable the -with-relative-paths-at in opam #91

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

dra27
Copy link
Member

@dra27 dra27 commented Nov 13, 2024

cf. ocaml/opam-repository#26864 (review).

The setup using an environment variable is clearly beneficial to Dune's experimental package management feature, but I don't think it's a good thing to turn on at present for all opam-repository users (especially given both @MSoegtropIMC and @jonahbeckford's concerns). It causes ocamlfind to depend on the OPAM_SWITCH_PREFIX environment variable being correct, which at present it does not. Given that opam itself can't do any kind of caching or relocation (at least at present), it doesn't seem to bring any benefit with that increased brittleness.

cc @Leonidas-from-XIV - there are a couple of mechanisms available which could allow this option to be enabled explicitly by a user, if it would be helpful for Dune p.m.? (very happy to help with that).

At present - with switches which cannot be moved anyway - this adds a
potential source of brittleness to opam switches without bringing any
benefit.
@gerdstolpmann
Copy link
Contributor

Agree. This is too much for the moment.

@gerdstolpmann gerdstolpmann merged commit 8e3a0a5 into ocaml:master Nov 16, 2024
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.

2 participants