-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fails for when OPAMROOT is set to something other than the default directory #197
Comments
Thanks for reporting this, good catch! I'll investigate, it must be just an omission on our part, I basically copied the opam initialization code from another plugin without giving it much more thought. |
Leonidas-from-XIV
added a commit
to Leonidas-from-XIV/opam-monorepo
that referenced
this issue
Sep 20, 2021
If not set then OPAM does not set the right path for the OPAM root and will use the default `~/.opam` no matter what. The OPAM API is surprising in this regard that even passing the root folder to `load_defaults` does not actually end up setting the folder. Closes tarides#197
Leonidas-from-XIV
added a commit
to Leonidas-from-XIV/opam-monorepo
that referenced
this issue
Sep 20, 2021
If not set then OPAM does not set the right path for the OPAM root and will use the default `~/.opam` no matter what. The OPAM API is surprising in this regard that even passing the root folder to `load_defaults` does not actually end up setting the folder. Closes tarides#197
@leojrfs You can try the code in the linked PR, it should fix it. We're aiming to get this upstreamed soon but in the meantime this should solve the issue. |
NathanReb
added a commit
to NathanReb/opam-repository
that referenced
this issue
Oct 12, 2021
CHANGES: ### Fixed - Fix setting `OPAMROOT` to accept non-default paths (tarides/opam-monorepo#197, tarides/opam-monorepo#198, @Leonidas-from-XIV) - Fix a bug where opam-monorepo would erase the opam cache by upgrading opam-libs from `2.1~rc2` to `2.1` (tarides/opam-monorepo#204, @NathanReb)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When
OPAMROOT
is set to something other than the default directory,opam-monorepo
fails:It doesn't seem like monorepo is initialising the opam state in the same way opam does, so the
OPAMROOT
variable is never read.The text was updated successfully, but these errors were encountered: