-
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
Warnings about unknown variables being printed #349
Comments
Not sure if I'm in the same case, but testing with OCaml 5.0.0 released yesterday, I get the same messages. The message is printed by https://github.com/ocaml-opam/opam-0install-solver/blob/b759d7c1c2f140724020f57599ead9ee394a8f7a/lib/switch_context.ml#L23 and the package using these variables is https://github.com/ocaml/opam-repository/blob/master/packages/ocaml-options-vanilla/ocaml-options-vanilla.1/opam . |
Thanks @palainp, it looks like this commit introduced them: ocaml/opam-repository@ab440dd and the 0install solver doesn't seem have support for those. I'll take a look what's going on. |
An error report already exists: ocaml-opam/opam-0install-solver#45, so this issue will need to be solved on the solver-side. |
After a debugging session with @kit-ty-kate as part of fixing tarides/opam-monorepo#349 and ocaml-opam/opam-0install-solver#46 we realized that OPAM doesn't support resolving package variables in `conflicts` fields (the linter complains about this in `depends` fileds but not in `conflicts` fields, but the solver never resolves these variables). So this constraint doesn't do anything in OPAM and it causes issues in the opam-0install-solver which attempts to resolve them.
Reported by @samoht:
The
project.opam
file does not use theversion
fields, so we should look into why these are being passed into OPAM and triggering this warning.The text was updated successfully, but these errors were encountered: