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
$ cat packages/test/test.1/opam
opam-version: "2.0"
extra-files: "does-not-exist"
pin-depends: "does-not-exist"
substs: [["does-not-exist"]]
$ opam update tmp
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[tmp] synchronised from file:///tmp/tmp
$ opam reinstall test
[ERROR] In the opam file for test.1:
- At /home/kit_ty_kate/.opam/repo/tmp/packages/test/test.1/opam:4:9-4:27::
expected file
- At /home/kit_ty_kate/.opam/repo/tmp/packages/test/test.1/opam:3:0-3:29::
expected [versioned package URL]
- At /home/kit_ty_kate/.opam/repo/tmp/packages/test/test.1/opam:2:0-2:29::
expected [file checksum]
'substs', 'pin-depends', 'extra-files' have been ignored.
The following actions will be performed:
=== recompile 1 package
↻ test 1
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⊘ removed test.1
∗ installed test.1
Done.
In this example extra-files, pin-depends and substs are mistyped but this is not shown in any way during opam update which does parse that package, and is only shown as an "error" (but ignored) on install.
In my opinion this should be at least the very least shown during opam update, if not a fatal error entirely, as well as being an fatal error on install. I'm not sure to understand the reasoning behind this behaviour, since if opam were to change the way some fields are typed, then this should be part of a opam-version bump which would then be incompatible with the version being parsed (and unavailable since 2.3.0 / #5665)
The text was updated successfully, but these errors were encountered:
In this example
extra-files
,pin-depends
andsubsts
are mistyped but this is not shown in any way during opam update which does parse that package, and is only shown as an "error" (but ignored) on install.In my opinion this should be at least the very least shown during opam update, if not a fatal error entirely, as well as being an fatal error on install. I'm not sure to understand the reasoning behind this behaviour, since if opam were to change the way some fields are typed, then this should be part of a opam-version bump which would then be incompatible with the version being parsed (and unavailable since 2.3.0 / #5665)
The text was updated successfully, but these errors were encountered: