You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With opam 2.1.2, a bogus dependency specification (>= build) does not disturb opam lint and leads to an assertion failure on pinning.
> opam lint ./opam
/Users/dbuenzli/sync/repos/otfm/opam: Passed.
> grep topkg opam
"topkg" {>= build & >= "1.0.3"}
> opam pin add .
otfm is now pinned to git+file:///Users/dbuenzli/sync/repos/otfm#master (version 0.4.0)
[NOTE] Pinning command successful, but your installed packages may be out of sync.
Fatal error:
File "src/solver/opamSolver.ml", line 265, characters 18-24: Assertion failed
Backtrace:
Raised at OpamSolver.opam2cudf.preresolve_deps.(fun) in file "src/solver/opamSolver.ml", line 265, characters 18-30
Called from OpamFormula.map in file "src/format/opamFormula.ml", line 139, characters 25-34
Called from OpamFormula.map in file "src/format/opamFormula.ml", line 139, characters 35-44
Called from OpamFormula.map in file "src/format/opamFormula.ml", line 139, characters 25-34
Called from OpamSolver.opam2cudf.preresolve_deps in file "src/solver/opamSolver.ml", line 257, characters 4-399
Called from OpamStd.Map.Make.map.(fun) in file "src/core/opamStd.ml", line 298, characters 18-27
Called from OpamStd.Map.Make.fold.(fun) in file "src/core/opamStd.ml", line 292, characters 14-28
Called from Stdlib__map.Make.iter in file "map.ml", line 297, characters 20-25
Called from Stdlib__map.Make.iter in file "map.ml", line 297, characters 10-18
Called from Stdlib__map.Make.iter in file "map.ml", line 297, characters 10-18
Called from Stdlib__map.Make.iter in file "map.ml", line 297, characters 10-18
Called from OpamStd.Map.Make.fold in file "src/core/opamStd.ml", line 291, characters 6-72
Called from OpamSolver.opam2cudf in file "src/solver/opamSolver.ml", line 271, characters 4-80
Called from OpamSolver.load_cudf_universe in file "src/solver/opamSolver.ml", line 323, characters 4-53
Called from OpamSolver.resolve in file "src/solver/opamSolver.ml", line 420, characters 17-70
Called from OpamSolution.resolve in file "src/client/opamSolution.ml", line 1286, characters 10-54
Called from OpamClient.compute_upgrade_t in file "src/client/opamClient.ml", line 248, characters 2-263
Called from OpamClient.upgrade_t in file "src/client/opamClient.ml", line 264, characters 8-84
Called from OpamClient.PIN.post_pin_action in file "src/client/opamClient.ml", line 1515, characters 6-157
Re-raised at OpamClient.PIN.post_pin_action in file "src/client/opamClient.ml", line 1523, characters 6-13
Called from OpamCommands.pin.pin.(fun) in file "src/client/opamCommands.ml", line 3253, characters 9-127
Called from OpamSwitchState.with_.(fun) in file "src/state/opamSwitchState.ml", line 1211, characters 14-18
Re-raised at OpamStd.Exn.finalise in file "src/core/opamStd.ml", line 1372, characters 4-38
Called from OpamStd.Exn.finally in file "src/core/opamStd.ml", line 1375, characters 10-14
Re-raised at OpamStd.Exn.finalise in file "src/core/opamStd.ml", line 1372, characters 4-38
Called from OpamGlobalState.with_ in file "src/state/opamGlobalState.ml", line 186, characters 14-18
Re-raised at OpamStd.Exn.finalise in file "src/core/opamStd.ml", line 1372, characters 4-38
Called from OpamStd.Exn.finally in file "src/core/opamStd.ml", line 1375, characters 10-14
Re-raised at OpamStd.Exn.finalise in file "src/core/opamStd.ml", line 1372, characters 4-38
Called from Cmdliner_term.app.(fun) in file "src_ext/cmdliner/src/cmdliner_term.ml", line 27, characters 19-24
Called from Cmdliner.Term.ret.(fun) in file "src_ext/cmdliner/src/cmdliner.ml", line 27, characters 27-34
Called from Cmdliner.Term.run in file "src_ext/cmdliner/src/cmdliner.ml", line 118, characters 32-39
Called from Cmdliner.Term.term_eval in file "src_ext/cmdliner/src/cmdliner.ml", line 148, characters 18-36
Called from Cmdliner.Term.eval_choice in file "src_ext/cmdliner/src/cmdliner.ml", line 266, characters 22-48
Called from OpamCliMain.run.(fun) in file "src/client/opamCliMain.ml", line 441, characters 8-60
Called from OpamCliMain.main_catch_all in file "src/client/opamCliMain.ml", line 328, characters 6-10
The text was updated successfully, but these errors were encountered:
There is an non handled case when a a constraint variable can't be resolved, linked PR fixes that.
Linting can't see it as it needs to resolve variables to check that is not resolved at some stage (lint does no variable resolving at all, switch state is not even loaded when a file is given).
With opam 2.1.2, a bogus dependency specification (
>= build
) does not disturbopam lint
and leads to an assertion failure on pinning.The text was updated successfully, but these errors were encountered: