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

Define OPAM_SWITCH_PREFIX when running package commands #2555

Merged
merged 1 commit into from
May 17, 2016

Conversation

AltGr
Copy link
Member

@AltGr AltGr commented May 13, 2016

No description provided.

@AltGr
Copy link
Member Author

AltGr commented May 13, 2016

Do we actually want this in the global context as well, as part of $(opam config env) ? It would then provide a replacement to calling $(opam config var prefix --safe)

@lefessan
Copy link
Contributor

Yes, I think it would be really nice. Currently, a ./configure has no way to know whether the current ocamlc compiler is managed by OPAM or not (and the environment). Checking that variable would give it a pretty good clue. So, definitively, it should be in 'opam config env' too.

By the way, what is the '--safe' for ?

@AltGr
Copy link
Member Author

AltGr commented May 14, 2016

--safe guarantees that opam won't take any lock, ask any question or block in any way. It may be useful e.g. if you upgraded your opam binary but not the format of ~/.opam yet, for example.

@AltGr
Copy link
Member Author

AltGr commented May 17, 2016

Let's already merge this part

@AltGr AltGr merged commit 801e34b into ocaml:master May 17, 2016
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