2026-02-13 08:10.55: New job: test ocurrent/opam-dune-lint https://github.com/ocurrent/opam-dune-lint.git#refs/heads/master (04aed0bd0e3e766f8e45c4af55a2051afd0b3b36) (openbsd-amd64:openbsd-77-amd64-5.4_opam-2.5) Base: openbsd-77-amd64-ocaml-5.4 Opam project build To reproduce locally: git clone --recursive "https://github.com/ocurrent/opam-dune-lint.git" -b "master" && cd "opam-dune-lint" && git reset --hard 04aed0bd cat > Dockerfile <<'END-OF-DOCKERFILE' FROM openbsd-77-amd64-ocaml-5.4 # openbsd-77-amd64-5.4_opam-2.5 USER 1000:1000 ENV CLICOLOR_FORCE="1" ENV OPAMCOLOR="always" RUN doas ln -f /usr/bin/opam-2.5 /usr/bin/opam RUN opam init --reinit -ni RUN uname -rs && opam exec -- ocaml -version && opam --version RUN cd ~/opam-repository && (git cat-file -e 302e116c4009da2f5a31c350a57c8b3c9b27289e || git fetch origin master) && git reset -q --hard 302e116c4009da2f5a31c350a57c8b3c9b27289e && git log --no-decorate -n1 --oneline && opam update -u COPY --chown=1000:1000 opam-dune-lint.opam /home/opam/src/./ RUN opam pin add -yn opam-dune-lint.dev '/home/opam/src/./' RUN echo '(lang dune 3.0)' > '/home/opam/src/./dune-project' ENV DEPS="astring.0.8.5 base-bigarray.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base bos.0.2.1 cmdliner.2.1.0 csexp.1.5.2 dune.3.21.1 dyn.3.21.1 fmt.0.11.0 fpath.0.7.3 fs-io.3.21.1 jsonm.1.0.2 logs.0.10.0 menhir.20260209 menhirCST.20260209 menhirGLR.20260209 menhirLib.20260209 menhirSdk.20260209 num.1.6 ocaml.5.4.0 ocaml-base-compiler.5.4.0 ocaml-compiler.5.4.0 ocaml-config.3 ocaml-options-vanilla.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 ocamlgraph.2.2.0 opam-core.2.5.0 opam-file-format.2.2.0 opam-format.2.5.0 opam-repository.2.5.0 opam-state.2.5.0 ordering.3.21.1 parsexp.v0.17.0 patch.3.1.0 pp.2.0.0 re.1.14.0 rresult.0.7.0 sexplib.v0.17.0 sexplib0.v0.17.0 sha.1.15.4 spdx_licenses.1.4.0 stdlib-shims.0.3.0 stdune.3.21.1 swhid_core.0.1 top-closure.3.21.1 topkg.1.1.1 uutf.1.0.4" ENV CI="true" ENV OCAMLCI="true" RUN opam update --depexts && opam install --cli=2.5 --depext-only -y opam-dune-lint.dev $DEPS RUN opam install $DEPS COPY --chown=1000:1000 . /home/opam/src RUN cd /home/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build END-OF-DOCKERFILE docker build . END-REPRO-BLOCK 2026-02-13 08:10.55: Using cache hint "ocurrent/opam-dune-lint-openbsd-77-amd64-ocaml-5.4-openbsd-77-amd64-5.4_opam-2.5-c2a7a6df23df07ca75fcac1c9bafebad" 2026-02-13 08:10.55: Using OBuilder spec: ((from openbsd-77-amd64-ocaml-5.4) (comment openbsd-77-amd64-5.4_opam-2.5) (user (uid 1000) (gid 1000)) (env CLICOLOR_FORCE 1) (env OPAMCOLOR always) (run (shell "doas ln -f /usr/bin/opam-2.5 /usr/bin/opam")) (run (shell "opam init --reinit -ni")) (run (shell "uname -rs && opam exec -- ocaml -version && opam --version")) (run (cache (opam-archives (target /home/opam/.opam/download-cache))) (network host) (shell "cd ~/opam-repository && (git cat-file -e 302e116c4009da2f5a31c350a57c8b3c9b27289e || git fetch origin master) && git reset -q --hard 302e116c4009da2f5a31c350a57c8b3c9b27289e && git log --no-decorate -n1 --oneline && opam update -u")) (copy (src opam-dune-lint.opam) (dst /home/opam/src/./)) (run (network host) (shell "opam pin add -yn opam-dune-lint.dev '/home/opam/src/./'")) (run (network host) (shell "echo '(lang dune 3.0)' > '/home/opam/src/./dune-project'")) (env DEPS "astring.0.8.5 base-bigarray.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base bos.0.2.1 cmdliner.2.1.0 csexp.1.5.2 dune.3.21.1 dyn.3.21.1 fmt.0.11.0 fpath.0.7.3 fs-io.3.21.1 jsonm.1.0.2 logs.0.10.0 menhir.20260209 menhirCST.20260209 menhirGLR.20260209 menhirLib.20260209 menhirSdk.20260209 num.1.6 ocaml.5.4.0 ocaml-base-compiler.5.4.0 ocaml-compiler.5.4.0 ocaml-config.3 ocaml-options-vanilla.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 ocamlgraph.2.2.0 opam-core.2.5.0 opam-file-format.2.2.0 opam-format.2.5.0 opam-repository.2.5.0 opam-state.2.5.0 ordering.3.21.1 parsexp.v0.17.0 patch.3.1.0 pp.2.0.0 re.1.14.0 rresult.0.7.0 sexplib.v0.17.0 sexplib0.v0.17.0 sha.1.15.4 spdx_licenses.1.4.0 stdlib-shims.0.3.0 stdune.3.21.1 swhid_core.0.1 top-closure.3.21.1 topkg.1.1.1 uutf.1.0.4") (env CI true) (env OCAMLCI true) (run (cache (opam-archives (target /home/opam/.opam/download-cache))) (network host) (shell "opam update --depexts && opam install --cli=2.5 --depext-only -y opam-dune-lint.dev $DEPS")) (run (cache (opam-archives (target /home/opam/.opam/download-cache))) (network host) (shell "opam install $DEPS")) (copy (src .) (dst /home/opam/src)) (run (shell "cd /home/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build")) ) 2026-02-13 08:10.55: Waiting for resource in pool OCluster 2026-02-14 03:19.14: Waiting for worker… 2026-02-14 06:53.32: Got resource from pool OCluster Building on oregano All commits already cached HEAD is now at 04aed0b Merge pull request #72 from amongonz/newline-patch (from openbsd-77-amd64-ocaml-5.4) 2026-02-14 06:53.32 ---> using "8424522d1f78b81b26ba463ba357c8ca122e0f74070b621aa84fc80c68430631" from cache /: (comment openbsd-77-amd64-5.4_opam-2.5) /: (user (uid 1000) (gid 1000)) /: (env CLICOLOR_FORCE 1) /: (env OPAMCOLOR always) /: (run (shell "doas ln -f /usr/bin/opam-2.5 /usr/bin/opam")) 2026-02-14 06:53.32 ---> using "cd72dc3a3c8ea2afd18b1257d8b5421d0f9a4dafb0a258b995fdf62c1e2a67c4" from cache /: (run (shell "opam init --reinit -ni")) No configuration file found, using built-in defaults. Checking for available remotes: rsync and local, git. - you won't be able to use mercurial repositories unless you install the hg command on your system. - you won't be able to use darcs repositories unless you install the darcs command on your system. <><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><> [default] no changes from file:///home/opam/opam-repository 2026-02-14 06:53.32 ---> using "25ee98d58d8c907869f6fd5004c258d71c5033e73edf1fe48b86a48a34773b77" from cache /: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version")) OpenBSD 7.7 The OCaml toplevel, version 5.4.0 2.5.0 2026-02-14 06:53.32 ---> using "b97072ad387d97fa49b3fc7ece6dbbedda3ad8df05946df9b57bbb8c1e1ea296" from cache /: (run (cache (opam-archives (target /home/opam/.opam/download-cache))) (network host) (shell "cd ~/opam-repository && (git cat-file -e 302e116c4009da2f5a31c350a57c8b3c9b27289e || git fetch origin master) && git reset -q --hard 302e116c4009da2f5a31c350a57c8b3c9b27289e && git log --no-decorate -n1 --oneline && opam update -u")) From https://github.com/ocaml/opam-repository * branch master -> FETCH_HEAD 93a7bce43a..302e116c40 master -> origin/master 302e116c40 Merge pull request #29374 from shonfeder/release-dune-3.21.1 <><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><> [default] synchronised from file:///home/opam/opam-repository Already up-to-date. Nothing to do. # To update the current shell environment, run: eval $(opam env) 2026-02-14 06:53.32 ---> using "8c01c926ad87a914679da1775f06ccb28a015a3c5bc0ec52bba0c455972c112a" from cache /: (copy (src opam-dune-lint.opam) (dst /home/opam/src/./)) 2026-02-14 06:53.32 ---> using "2b19b32691250bb429af440984b22498091cc38fd3dd8509a4d4f8086a8b43aa" from cache /: (run (network host) (shell "opam pin add -yn opam-dune-lint.dev '/home/opam/src/./'")) [opam-dune-lint.dev] synchronised (file:///home/opam/src) opam-dune-lint is now pinned to file:///home/opam/src (version dev) 2026-02-14 06:53.32 ---> using "08d86eab268990be26b11a7d3747893dc2dd93f7bd70660b4f818cc743ec6e75" from cache /: (run (network host) (shell "echo '(lang dune 3.0)' > '/home/opam/src/./dune-project'")) 2026-02-14 06:53.32 ---> using "d2975b7291aacabe7d90da0328c031194b38c173cee56e3955b2dae14af26390" from cache /: (env DEPS "astring.0.8.5 base-bigarray.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base bos.0.2.1 cmdliner.2.1.0 csexp.1.5.2 dune.3.21.1 dyn.3.21.1 fmt.0.11.0 fpath.0.7.3 fs-io.3.21.1 jsonm.1.0.2 logs.0.10.0 menhir.20260209 menhirCST.20260209 menhirGLR.20260209 menhirLib.20260209 menhirSdk.20260209 num.1.6 ocaml.5.4.0 ocaml-base-compiler.5.4.0 ocaml-compiler.5.4.0 ocaml-config.3 ocaml-options-vanilla.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 ocamlgraph.2.2.0 opam-core.2.5.0 opam-file-format.2.2.0 opam-format.2.5.0 opam-repository.2.5.0 opam-state.2.5.0 ordering.3.21.1 parsexp.v0.17.0 patch.3.1.0 pp.2.0.0 re.1.14.0 rresult.0.7.0 sexplib.v0.17.0 sexplib0.v0.17.0 sha.1.15.4 spdx_licenses.1.4.0 stdlib-shims.0.3.0 stdune.3.21.1 swhid_core.0.1 top-closure.3.21.1 topkg.1.1.1 uutf.1.0.4") /: (env CI true) /: (env OCAMLCI true) /: (run (cache (opam-archives (target /home/opam/.opam/download-cache))) (network host) (shell "opam update --depexts && opam install --cli=2.5 --depext-only -y opam-dune-lint.dev $DEPS")) [WARNING] Unknown update command for bsd, skipping system update <><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><> [opam-dune-lint.dev] synchronised (file:///home/opam/src) [NOTE] Package ocaml-options-vanilla is already installed (current version is 1). [NOTE] Package ocaml-config is already installed (current version is 3). [NOTE] Package ocaml-compiler is already installed (current version is 5.4.0). [NOTE] Package ocaml-base-compiler is already installed (current version is 5.4.0). [NOTE] Package ocaml is already installed (current version is 5.4.0). [NOTE] Package base-unix is already installed (current version is base). [NOTE] Package base-threads is already installed (current version is base). [NOTE] Package base-nnp is already installed (current version is base). [NOTE] Package base-effects is already installed (current version is base). [NOTE] Package base-domains is already installed (current version is base). [NOTE] Package base-bigarray is already installed (current version is base). # To update the current shell environment, run: eval $(opam env) 2026-02-14 06:54.38 ---> saved as "b8599b8e4d558c3f78f622e37f8a4631c89573de18b4649cf72eb2fad62fa3fe" /: (run (cache (opam-archives (target /home/opam/.opam/download-cache))) (network host) (shell "opam install $DEPS")) [NOTE] Package ocaml-options-vanilla is already installed (current version is 1). [NOTE] Package ocaml-config is already installed (current version is 3). [NOTE] Package ocaml-compiler is already installed (current version is 5.4.0). [NOTE] Package ocaml-base-compiler is already installed (current version is 5.4.0). [NOTE] Package ocaml is already installed (current version is 5.4.0). [NOTE] Package base-unix is already installed (current version is base). [NOTE] Package base-threads is already installed (current version is base). [NOTE] Package base-nnp is already installed (current version is base). [NOTE] Package base-effects is already installed (current version is base). [NOTE] Package base-domains is already installed (current version is base). [NOTE] Package base-bigarray is already installed (current version is base). The following actions will be performed: === install 41 packages - install astring 0.8.5 - install bos 0.2.1 - install cmdliner 2.1.0 - install csexp 1.5.2 - install dune 3.21.1 - install dyn 3.21.1 - install fmt 0.11.0 - install fpath 0.7.3 - install fs-io 3.21.1 - install jsonm 1.0.2 - install logs 0.10.0 - install menhir 20260209 - install menhirCST 20260209 - install menhirGLR 20260209 - install menhirLib 20260209 - install menhirSdk 20260209 - install num 1.6 - install ocamlbuild 0.16.1 - install ocamlfind 1.9.8 - install ocamlgraph 2.2.0 - install opam-core 2.5.0 - install opam-file-format 2.2.0 - install opam-format 2.5.0 - install opam-repository 2.5.0 - install opam-state 2.5.0 - install ordering 3.21.1 - install parsexp v0.17.0 - install patch 3.1.0 - install pp 2.0.0 - install re 1.14.0 - install rresult 0.7.0 - install sexplib v0.17.0 - install sexplib0 v0.17.0 - install sha 1.15.4 - install spdx_licenses 1.4.0 - install stdlib-shims 0.3.0 - install stdune 3.21.1 - install swhid_core 0.1 - install top-closure 3.21.1 - install topkg 1.1.1 - install uutf 1.0.4 <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> -> retrieved cmdliner.2.1.0 (cached) -> retrieved csexp.1.5.2 (cached) -> retrieved bos.0.2.1 (cached) -> retrieved astring.0.8.5 (cached) -> retrieved fmt.0.11.0 (cached) -> retrieved fpath.0.7.3 (cached) -> retrieved jsonm.1.0.2 (cached) -> retrieved logs.0.10.0 (cached) -> retrieved num.1.6 (cached) -> retrieved ocamlbuild.0.16.1 (cached) -> retrieved ocamlfind.1.9.8 (cached) -> retrieved menhir.20260209, menhirCST.20260209, menhirGLR.20260209, menhirLib.20260209, menhirSdk.20260209 (cached) -> retrieved ocamlgraph.2.2.0 (cached) -> retrieved opam-core.2.5.0, opam-format.2.5.0, opam-repository.2.5.0, opam-state.2.5.0 (cached) -> retrieved opam-file-format.2.2.0 (cached) -> installed num.1.6 -> retrieved patch.3.1.0 (cached) -> retrieved parsexp.v0.17.0 (cached) -> retrieved pp.2.0.0 (cached) -> retrieved dune.3.21.1, dyn.3.21.1, fs-io.3.21.1, ordering.3.21.1, stdune.3.21.1, top-closure.3.21.1 (cached) -> retrieved rresult.0.7.0 (cached) -> retrieved re.1.14.0 (cached) -> retrieved sexplib0.v0.17.0 (cached) -> retrieved sha.1.15.4 (cached) -> retrieved spdx_licenses.1.4.0 (cached) -> retrieved stdlib-shims.0.3.0 (cached) -> retrieved swhid_core.0.1 (cached) -> retrieved sexplib.v0.17.0 (cached) -> retrieved uutf.1.0.4 (cached) -> retrieved topkg.1.1.1 (cached) -> installed ocamlbuild.0.16.1 -> installed cmdliner.2.1.0 -> installed ocamlfind.1.9.8 -> installed topkg.1.1.1 -> installed fmt.0.11.0 -> installed astring.0.8.5 -> installed rresult.0.7.0 -> installed fpath.0.7.3 -> installed logs.0.10.0 -> installed uutf.1.0.4 -> installed jsonm.1.0.2 -> installed bos.0.2.1 -> installed dune.3.21.1 -> installed csexp.1.5.2 -> installed menhirCST.20260209 -> installed menhirGLR.20260209 -> installed fs-io.3.21.1 -> installed menhirLib.20260209 -> installed menhirSdk.20260209 -> installed patch.3.1.0 -> installed ordering.3.21.1 -> installed ocamlgraph.2.2.0 -> installed pp.2.0.0 -> installed sexplib0.v0.17.0 -> installed re.1.14.0 -> installed dyn.3.21.1 -> installed parsexp.v0.17.0 -> installed spdx_licenses.1.4.0 -> installed stdlib-shims.0.3.0 -> installed swhid_core.0.1 -> installed sexplib.v0.17.0 -> installed sha.1.15.4 -> installed top-closure.3.21.1 -> installed menhir.20260209 -> installed opam-file-format.2.2.0 -> installed opam-core.2.5.0 -> installed stdune.3.21.1 -> installed opam-format.2.5.0 -> installed opam-repository.2.5.0 -> installed opam-state.2.5.0 Done. # To update the current shell environment, run: eval $(opam env) 2026-02-14 07:02.53 ---> saved as "daf0c29812c802da4ea7180f85b76c20911b2fa51d9e3fbae54347e8693293f9" /: (copy (src .) (dst /home/opam/src)) 2026-02-14 07:03.51 ---> saved as "0402db164183d48ac426360a06acdb102e6063720eed32a1b41c0fccf94f3abe" /: (run (shell "cd /home/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build")) (cd _build/default && /home/opam/.opam/5.4.0/bin/ocamlopt.opt -w @1..3@5..28@30..39@43@46..47@49..57@61..62@67@69-40 -strict-sequence -strict-formats -short-paths -keep-locs -g -o main.exe /home/opam/.opam/5.4.0/lib/astring/astring.cmxa /home/opam/.opam/5.4.0/lib/fmt/fmt.cmxa /home/opam/.opam/5.4.0/lib/ocaml/unix/unix.cmxa /home/opam/.opam/5.4.0/lib/fmt/tty/fmt_tty.cmxa /home/opam/.opam/5.4.0/lib/rresult/rresult.cmxa /home/opam/.opam/5.4.0/lib/fpath/fpath.cmxa /home/opam/.opam/5.4.0/lib/logs/logs.cmxa /home/opam/.opam/5.4.0/lib/bos/bos.cmxa /home/opam/.opam/5.4.0/lib/ocamlgraph/graph.cmxa /home/opam/.opam/5.4.0/lib/re/re.cmxa /home/opam/.opam/5.4.0/lib/stdlib-shims/stdlib_shims.cmxa /home/opam/.opam/5.4.0/lib/sha/sha.cmxa -I /home/opam/.opam/5.4.0/lib/sha /home/opam/.opam/5.4.0/lib/uutf/uutf.cmxa /home/opam/.opam/5.4.0/lib/jsonm/jsonm.cmxa /home/opam/.opam/5.4.0/lib/swhid_core/swhid_core.cmxa /home/opam/.opam/5.4.0/lib/patch/patch.cmxa /home/opam/.opam/5.4.0/lib/opam-core/opam_core.cmxa -I /home/opam/.opam/5.4.0/lib/opam-core /home/opam/.opam/5.4.0/lib/opam-file-format/opam_file_format.cmxa /home/opam/.opam/5.4.0/lib/opam-format/opam_format.cmxa /home/opam/.opam/5.4.0/lib/opam-repository/opam_repository.cmxa /home/opam/.opam/5.4.0/lib/spdx_licenses/spdx_licenses.cmxa /home/opam/.opam/5.4.0/lib/opam-state/opam_state.cmxa /home/opam/.opam/5.4.0/lib/cmdliner/cmdliner.cmxa /home/opam/.opam/5.4.0/lib/top-closure/top_closure.cmxa /home/opam/.opam/5.4.0/lib/ordering/ordering.cmxa /home/opam/.opam/5.4.0/lib/pp/pp.cmxa /home/opam/.opam/5.4.0/lib/dyn/dyn.cmxa /home/opam/.opam/5.4.0/lib/csexp/csexp.cmxa /home/opam/.opam/5.4.0/lib/fs-io/fs_io.cmxa /home/opam/.opam/5.4.0/lib/stdune/stdune.cmxa -I /home/opam/.opam/5.4.0/lib/stdune /home/opam/.opam/5.4.0/lib/sexplib0/sexplib0.cmxa /home/opam/.opam/5.4.0/lib/parsexp/parsexp.cmxa /home/opam/.opam/5.4.0/lib/sexplib/sexplib.cmxa /home/opam/.opam/5.4.0/lib/ocaml/str/str.cmxa .main.eobjs/native/dune__exe.cmx .main.eobjs/native/dune__exe__Dune_constraints.cmx .main.eobjs/native/dune__exe__Types.cmx .main.eobjs/native/dune__exe__Dune_items.cmx .main.eobjs/native/dune__exe__Dune_rules.cmx .main.eobjs/native/dune__exe__Deps.cmx .main.eobjs/native/dune__exe__Dune_project.cmx .main.eobjs/native/dune__exe__Formula.cmx .main.eobjs/native/dune__exe__Index.cmx .main.eobjs/native/dune__exe__Main.cmx) ld: warning: sha1_stubs.c:141(sha1_stubs.o:(stub_sha1_file) in archive /home/opam/.opam/5.4.0/lib/sha/libsha_stubs.a): warning: strcpy() is almost always misused, please use strlcpy() File "tests/test_dune.t", line 1, characters 0-0: /usr/local/bin/git --no-pager diff --no-index --color=always -u _build/default/tests/test_dune.t _build/default/tests/test_dune.t.corrected diff --git a/_build/default/tests/test_dune.t b/_build/default/tests/test_dune.t.corrected index ba4ac70..c734bb2 100644 --- a/_build/default/tests/test_dune.t +++ b/_build/default/tests/test_dune.t.corrected @@ -47,30 +47,14 @@ Check that the missing libraries get added: "bos" {with-test & >= "1.0"} [from /] "opam-state" {with-test & >= "1.0"} [from /] Note: version numbers are just suggestions based on the currently installed version. - Wrote "dune-project" + File "dune-project", line 1, characters 0-0: + Error: Invalid first line, expected: (lang <lang> <version>) + opam-dune-lint: internal error, uncaught exception: + Failure("run ['dune' 'format-dune-file']: exited with 1") + + [125] $ cat dune-project | sed 's/= [^)}]*/= */g' - (lang dune 2.7) - - (generate_opam_files true) - - (package - (name test) - (synopsis "Test package") - (depends - (opam-state - (and - (>= *) - :with-test)) - (bos - (and - (>= *) - :with-test)) - (fmt - (>= *)) - (ocamlfind - (>= *)) - libfoo)) Check adding and removing of test markers: @@ -96,26 +80,19 @@ Check adding and removing of test markers: "ocamlfind" [from /] (remove {with-test}) "bos" {with-test} [from /] (missing {with-test} annotation) "opam-state" {with-test} [from /] (missing {with-test} annotation) - Wrote "dune-project" + File "dune-project", line 1, characters 0-0: + Error: Invalid first line, expected: (lang <lang> <version>) + opam-dune-lint: internal error, uncaught exception: + Failure("run ['dune' 'format-dune-file']: exited with 1") + + [125] $ cat dune-project | sed 's/= [^)}]*/= */g' - (lang dune 2.7) - - (generate_opam_files true) - - (package - (name test) - (synopsis "Test package") - (depends - (opam-state :with-test) - (bos - (and - :with-test - (>= *))) - fmt - (ocamlfind - (>= *)) - libfoo)) $ opam-dune-lint - test.opam: OK + File "dune-project", line 1, characters 0-0: + Error: Invalid first line, expected: (lang <lang> <version>) + opam-dune-lint: internal error, uncaught exception: + Failure("run ['dune' 'describe' 'opam-files' '--format' 'csexp']: exited with 1") + + [125] File "tests/test_dune_same_exe_name.t", line 1, characters 0-0: /usr/local/bin/git --no-pager diff --no-index --color=always -u _build/default/tests/test_dune_same_exe_name.t _build/default/tests/test_dune_same_exe_name.t.corrected diff --git a/_build/default/tests/test_dune_same_exe_name.t b/_build/default/tests/test_dune_same_exe_name.t.corrected index c25c319..fa72289 100644 --- a/_build/default/tests/test_dune_same_exe_name.t +++ b/_build/default/tests/test_dune_same_exe_name.t.corrected @@ -58,4 +58,9 @@ Check that the missing libraries get added: "bos" {with-test & >= "1.0"} [from bin] "opam-state" {with-test & >= "1.0"} [from bin] Note: version numbers are just suggestions based on the currently installed version. - Wrote "dune-project" + File "dune-project", line 1, characters 0-0: + Error: Invalid first line, expected: (lang <lang> <version>) + opam-dune-lint: internal error, uncaught exception: + Failure("run ['dune' 'format-dune-file']: exited with 1") + + [125] File "tests/test_dune_copy_install.t", line 1, characters 0-0: /usr/local/bin/git --no-pager diff --no-index --color=always -u _build/default/tests/test_dune_copy_install.t _build/default/tests/test_dune_copy_install.t.corrected diff --git a/_build/default/tests/test_dune_copy_install.t b/_build/default/tests/test_dune_copy_install.t.corrected index edbcebd..1be8b94 100644 --- a/_build/default/tests/test_dune_copy_install.t +++ b/_build/default/tests/test_dune_copy_install.t.corrected @@ -70,43 +70,14 @@ Check that the missing libraries get added: "bos" {with-test & >= "1.0"} [from /] "opam-state" {with-test & >= "1.0"} [from /] Note: version numbers are just suggestions based on the currently installed version. - Wrote "dune-project" + File "dune-project", line 1, characters 0-0: + Error: Invalid first line, expected: (lang <lang> <version>) + opam-dune-lint: internal error, uncaught exception: + Failure("run ['dune' 'format-dune-file']: exited with 1") + + [125] $ cat dune-project | sed 's/= [^)}]*/= */g' - (lang dune 2.7) - - (generate_opam_files true) - - (package - (name test) - (synopsis "Test package") - (depends - (opam-state - (and - (>= *) - :with-test)) - (bos - (and - (>= *) - :with-test)) - (fmt - (>= *)) - (ocamlfind - (>= *)) - libfoo)) - - (package - (name zombie) - (synopsis "Zombie package") - (depends - (opam-state - (and - (>= *) - :with-test)) - (bos - (and - (>= *) - :with-test)))) Check adding and removing of test markers: @@ -139,40 +110,19 @@ Check adding and removing of test markers: "bos" {with-test & >= "1.0"} [from /] "opam-state" {with-test & >= "1.0"} [from /] Note: version numbers are just suggestions based on the currently installed version. - Wrote "dune-project" + File "dune-project", line 1, characters 0-0: + Error: Invalid first line, expected: (lang <lang> <version>) + opam-dune-lint: internal error, uncaught exception: + Failure("run ['dune' 'format-dune-file']: exited with 1") + + [125] $ cat dune-project | sed 's/= [^)}]*/= */g' - (lang dune 2.7) - - (generate_opam_files true) - - (package - (name test) - (synopsis "Test package") - (depends - (opam-state :with-test) - (bos - (and - :with-test - (>= *))) - fmt - (ocamlfind - (>= *)) - libfoo)) - - (package - (name zombie) - (synopsis "Zombie package") - (depends - (opam-state - (and - (>= *) - :with-test)) - (bos - (and - (>= *) - :with-test)))) $ opam-dune-lint - test.opam: OK - zombie.opam: OK + File "dune-project", line 1, characters 0-0: + Error: Invalid first line, expected: (lang <lang> <version>) + opam-dune-lint: internal error, uncaught exception: + Failure("run ['dune' 'describe' 'opam-files' '--format' 'csexp']: exited with 1") + + [125] File "tests/test_empty_dune.t", line 1, characters 0-0: /usr/local/bin/git --no-pager diff --no-index --color=always -u _build/default/tests/test_empty_dune.t _build/default/tests/test_empty_dune.t.corrected diff --git a/_build/default/tests/test_empty_dune.t b/_build/default/tests/test_empty_dune.t.corrected index 727a0c9..11d1512 100644 --- a/_build/default/tests/test_empty_dune.t +++ b/_build/default/tests/test_empty_dune.t.corrected @@ -36,26 +36,11 @@ Check that all the libraries get added: "bos" {with-test & >= "1.0"} [from /] "opam-state" {with-test & >= "1.0"} [from /] Note: version numbers are just suggestions based on the currently installed version. - Wrote "dune-project" + File "dune-project", line 1, characters 0-0: + Error: Invalid first line, expected: (lang <lang> <version>) + opam-dune-lint: internal error, uncaught exception: + Failure("run ['dune' 'format-dune-file']: exited with 1") + + [125] $ cat dune-project | sed 's/= [^)}]*/= */g' - (lang dune 2.7) - - (generate_opam_files true) - - (package - (name test) - (synopsis "Test package") - (depends - (opam-state - (and - (>= *) - :with-test)) - (bos - (and - (>= *) - :with-test)) - (ocamlfind - (>= *)) - (fmt - (>= *)))) File "tests/test_dune_stanza_install.t", line 1, characters 0-0: /usr/local/bin/git --no-pager diff --no-index --color=always -u _build/default/tests/test_dune_stanza_install.t _build/default/tests/test_dune_stanza_install.t.corrected diff --git a/_build/default/tests/test_dune_stanza_install.t b/_build/default/tests/test_dune_stanza_install.t.corrected index 1e2ca25..11bda9c 100644 --- a/_build/default/tests/test_dune_stanza_install.t +++ b/_build/default/tests/test_dune_stanza_install.t.corrected @@ -50,30 +50,14 @@ Check that the missing libraries get added: "bos" {with-test & >= "1.0"} [from /] "opam-state" {with-test & >= "1.0"} [from /] Note: version numbers are just suggestions based on the currently installed version. - Wrote "dune-project" + File "dune-project", line 1, characters 0-0: + Error: Invalid first line, expected: (lang <lang> <version>) + opam-dune-lint: internal error, uncaught exception: + Failure("run ['dune' 'format-dune-file']: exited with 1") + + [125] $ cat dune-project | sed 's/= [^)}]*/= */g' - (lang dune 2.7) - - (generate_opam_files true) - - (package - (name test) - (synopsis "Test package") - (depends - (opam-state - (and - (>= *) - :with-test)) - (bos - (and - (>= *) - :with-test)) - (fmt - (>= *)) - (ocamlfind - (>= *)) - libfoo)) Check adding and removing of test markers: @@ -99,26 +83,19 @@ Check adding and removing of test markers: "ocamlfind" [from /] (remove {with-test}) "bos" {with-test} [from /] (missing {with-test} annotation) "opam-state" {with-test} [from /] (missing {with-test} annotation) - Wrote "dune-project" + File "dune-project", line 1, characters 0-0: + Error: Invalid first line, expected: (lang <lang> <version>) + opam-dune-lint: internal error, uncaught exception: + Failure("run ['dune' 'format-dune-file']: exited with 1") + + [125] $ cat dune-project | sed 's/= [^)}]*/= */g' - (lang dune 2.7) - - (generate_opam_files true) - - (package - (name test) - (synopsis "Test package") - (depends - (opam-state :with-test) - (bos - (and - :with-test - (>= *))) - fmt - (ocamlfind - (>= *)) - libfoo)) $ opam-dune-lint - test.opam: OK + File "dune-project", line 1, characters 0-0: + Error: Invalid first line, expected: (lang <lang> <version>) + opam-dune-lint: internal error, uncaught exception: + Failure("run ['dune' 'describe' 'opam-files' '--format' 'csexp']: exited with 1") + + [125] File "tests/test_opam_update.t", line 1, characters 0-0: /usr/local/bin/git --no-pager diff --no-index --color=always -u _build/default/tests/test_opam_update.t _build/default/tests/test_opam_update.t.corrected diff --git a/_build/default/tests/test_opam_update.t b/_build/default/tests/test_opam_update.t.corrected index 15a9827..f4e57d4 100644 --- a/_build/default/tests/test_opam_update.t +++ b/_build/default/tests/test_opam_update.t.corrected @@ -61,7 +61,12 @@ Check that the missing libraries get added: "bos" {with-test & >= "1.0"} [from /] "opam-state" {with-test & >= "1.0"} [from /] Note: version numbers are just suggestions based on the currently installed version. - Wrote "dune-project" + File "dune-project", line 1, characters 0-0: + Error: Invalid first line, expected: (lang <lang> <version>) + opam-dune-lint: internal error, uncaught exception: + Failure("run ['dune' 'format-dune-file']: exited with 1") + + [125] $ cat test.opam | sed 's/= [^&)}]*/= */g' # This file is generated by dune, edit dune-project instead @@ -69,10 +74,6 @@ Check that the missing libraries get added: synopsis: "Test package" depends: [ "dune" {>= *} - "opam-state" {>= *& with-test} - "bos" {>= *& with-test} - "ocamlfind" {>= *} - "fmt" {>= *} "cmdliner" "odoc" {with-doc} ] File "tests/test_public_lib.t", line 1, characters 0-0: /usr/local/bin/git --no-pager diff --no-index --color=always -u _build/default/tests/test_public_lib.t _build/default/tests/test_public_lib.t.corrected diff --git a/_build/default/tests/test_public_lib.t b/_build/default/tests/test_public_lib.t.corrected index 661e56b..950d32a 100644 --- a/_build/default/tests/test_public_lib.t +++ b/_build/default/tests/test_public_lib.t.corrected @@ -64,44 +64,14 @@ Check that the missing libraries get added: "bos" {with-test & >= "1.0"} [from /] "opam-state" {with-test & >= "1.0"} [from /] Note: version numbers are just suggestions based on the currently installed version. - Wrote "dune-project" + File "dune-project", line 1, characters 0-0: + Error: Invalid first line, expected: (lang <lang> <version>) + opam-dune-lint: internal error, uncaught exception: + Failure("run ['dune' 'format-dune-file']: exited with 1") + + [125] $ cat dune-project | sed 's/= [^)}]*/= */g' - (lang dune 2.7) - - (generate_opam_files true) - - (package - (name test) - (synopsis "Test package") - (depends - (opam-state - (and - (>= *) - :with-test)) - (bos - (and - (>= *) - :with-test)) - (fmt - (>= *)) - (ocamlfind - (>= *)) - libfoo)) - - (package - (name lib) - (synopsis "Lib package") - (depends - (opam-state - (and - (>= *) - :with-test)) - (bos - (and - (>= *) - :with-test)) - sexplib)) Check adding and removing of test markers: @@ -135,41 +105,19 @@ Check adding and removing of test markers: "bos" {with-test} [from /] (missing {with-test} annotation) "opam-state" {with-test} [from /] (missing {with-test} annotation) Note: version numbers are just suggestions based on the currently installed version. - Wrote "dune-project" + File "dune-project", line 1, characters 0-0: + Error: Invalid first line, expected: (lang <lang> <version>) + opam-dune-lint: internal error, uncaught exception: + Failure("run ['dune' 'format-dune-file']: exited with 1") + + [125] $ cat dune-project | sed 's/= [^)}]*/= */g' - (lang dune 2.7) - - (generate_opam_files true) - - (package - (name test) - (synopsis "Test package") - (depends - (opam-state :with-test) - (bos - (and - :with-test - (>= *))) - fmt - (ocamlfind - (>= *)) - libfoo)) - - (package - (name lib) - (synopsis "Lib package") - (depends - (opam-state - (and - (>= *) - :with-test)) - (bos - (and - (>= *) - :with-test)) - sexplib)) $ opam-dune-lint - lib.opam: OK - test.opam: OK + File "dune-project", line 1, characters 0-0: + Error: Invalid first line, expected: (lang <lang> <version>) + opam-dune-lint: internal error, uncaught exception: + Failure("run ['dune' 'describe' 'opam-files' '--format' 'csexp']: exited with 1") + + [125] "cd /home/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1 2026-02-14 07:05.08: Job failed: Failed: Build failed