-
Notifications
You must be signed in to change notification settings - Fork 371
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
os-distribution #4885
Comments
One "issue" here is that opam let you think that you changed the internal |
I don't understand: (BTW, I don't understand the use of the global variable os-distribution if it is always overridden by opam at runtime.)
I don't understand what this example is there to illustrate.
Why not then use the global value of Didier |
I had a try at fixing this in #4886. The code is horrible (because of a cyclic dependency I couldn’t wrap my head around) but it I’ve tested it and it seems to work. (though in your case you also need to set |
BTW, I had trouble finding out where the problem originated from. |
opam has a global configuration variable
os-distribution
, but this variable seems to be ignored at least in most (if not all) cases, instead trying to guess the its value dynamically by checking which one of the two commandsbrew
orport
(in this order) is executable.Here is my global config:
However, opam seems to bypass this configuration:
The reason is that (for some reason) I have both
port
andbrew
binaries installed.Indeed, removing the executable rights to the
brew
commandfixes the problem:
But I consider this to be a bug since the global
os-distribution
variable seems to be always overriden.As a result,
opam
brew
, which I must refuse.conf-*
packages even when these are correctly installed with macports.My only solution is thus to make
brew
non-executable.The text was updated successfully, but these errors were encountered: