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
{{ message }}
This repository was archived by the owner on Oct 3, 2024. It is now read-only.
Differentiate between missing dune dependency vs lower bound
Previously, we incorrectly showed a missing dune dependency error, when
a version lower bound constraint was missing. This commit improves the
error messages to differentiate between missing lower bound constraint
vs missing the dune dependency entirely.
Copy file name to clipboardExpand all lines: test/lint.t
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,9 @@ Setup repo for incorrect b package tests
24
24
$ git apply "patches/b-incorrect-opam.patch"
25
25
$ git add packages/
26
26
$ echo "(lang dune 3.16)" > dune-project
27
+
$ sh "scripts/setup_sources.sh" b 0.0.2 dune-project
28
+
Created tarball b.0.0.2.tgz
29
+
Updated checksum for b.0.0.2.tgz in b.0.0.2's opam file
27
30
$ sh "scripts/setup_sources.sh" b 0.0.3 dune-project
28
31
Created tarball b.0.0.3.tgz
29
32
Updated checksum for b.0.0.3.tgz in b.0.0.3's opam file
@@ -63,9 +66,8 @@ Test the following:
63
66
Linting opam-repository at $TESTCASE_ROOT/. ...
64
67
Warning in b.0.0.2: Dubious use of 'dune subst'. 'dune subst' should always only be called with {dev} (i.e. ["dune" "subst"] {dev}) If your opam file has been autogenerated by dune, you need to upgrade your dune-project to at least (lang dune 2.7).
65
68
Warning in b.0.0.2: The package tagged dune as a build dependency. Due to a bug in dune (https://github.com/ocaml/dune/issues/2147) this should never be the case. Please remove the {build} tag from its filter.
66
-
Error in b.0.0.2: Failed to download the archive. Details: $TESTCASE_ROOT/b.0.0.2.tgz
69
+
Warning in b.0.0.2: The package has a dune dependency without a lower bound.
67
70
Error in b.0.0.2: error 3: File format error in 'unknown-field' at line 11, column 0: Invalid field unknown-field
68
-
Error in b.0.0.2: error 60: Upstream check failed: "Source not found: $TESTCASE_ROOT/b.0.0.2.tgz"
0 commit comments