Organisationsmbarbincrs74e2d6 ()(lint-opam)

(lint-opam)

Logs

Show full logs
2025-09-01 13:37.59: New job: test mbarbin/crs https://github.com/mbarbin/crs.git#refs/heads/main (74e2d649b212e0112e4563b9361cd7a773421faf) (linux-x86_64:(lint-opam))
Base: ocaml/opam:debian-12-ocaml-5.0@sha256:124f347f91e67bbee17e253ff93ee3b3dc82ad2b4429aaae0ec31e2d2f084723
Opam files lint

To reproduce locally:

git clone --recursive "https://github.com/mbarbin/crs.git" -b "main" && cd "crs" && git reset --hard 74e2d649
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-5.0@sha256:124f347f91e67bbee17e253ff93ee3b3dc82ad2b4429aaae0ec31e2d2f084723
# debian-12-5.0_opam-2.4
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.2 /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
WORKDIR /src
RUN sudo chown opam /src
RUN cd ~/opam-repository && (git cat-file -e 4c972ba0fc24bcf3f84a30d19f8d725f7ce382a4 || git fetch origin master) && git reset -q --hard 4c972ba0fc24bcf3f84a30d19f8d725f7ce382a4 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 crs.opam crs-tests.opam crs-dev.opam ./
RUN opam pin add -yn crs.dev './' && \
    opam pin add -yn crs-tests.dev './' && \
    opam pin add -yn crs-dev.dev './'
RUN echo '(lang dune 3.0)' > './dune-project'
ENV DEPS="astring.0.8.5 base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base bos.0.2.1 cmdliner.1.3.0 csexp.1.5.2 dune.3.20.1 dyn.3.20.1 fmt.0.11.0 fpath.0.7.3 jsonm.1.0.2 logs.0.9.0 menhir.20240715 menhirCST.20240715 menhirLib.20240715 menhirSdk.20240715 num.1.6 ocaml.5.0.0 ocaml-base-compiler.5.0.0 ocaml-config.3 ocaml-options-vanilla.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 ocamlgraph.2.2.0 opam-core.2.4.1 opam-dune-lint.0.6 opam-file-format.2.2.0 opam-format.2.4.1 opam-repository.2.4.1 opam-state.2.4.1 ordering.3.20.1 parsexp.v0.16.0 patch.3.0.0 pp.2.0.0 re.1.13.2 rresult.0.7.0 seq.base sexplib.v0.16.0 sexplib0.v0.16.0 sha.1.15.4 spdx_licenses.1.4.0 stdlib-shims.0.3.0 stdune.3.20.1 swhid_core.0.1 topkg.1.1.0 uutf.1.0.4"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.2 --depext-only -y deps_for_opam_dune_lint.opam $DEPS
RUN opam install $DEPS
ENV CI="true"
ENV OCAMLCI="true"
WORKDIR /src
COPY --chown=1000:1000 . /src/
RUN opam lint
RUN opam exec -- opam-dune-lint

END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK

2025-09-01 13:37.59: Using cache hint "mbarbin/crs-ocaml/opam:debian-12-ocaml-5.0@sha256:124f347f91e67bbee17e253ff93ee3b3dc82ad2b4429aaae0ec31e2d2f084723-debian-12-5.0_opam-2.4-7dd81c17f5ea3cc9cbf0069f077df0d7"
2025-09-01 13:37.59: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.0@sha256:124f347f91e67bbee17e253ff93ee3b3dc82ad2b4429aaae0ec31e2d2f084723)
 (comment debian-12-5.0_opam-2.4)
 (user (uid 1000) (gid 1000))
 (env CLICOLOR_FORCE 1)
 (env OPAMCOLOR always)
 (workdir /src)
 (run (shell "sudo ln -f /usr/bin/opam-2.2 /usr/bin/opam"))
 (run (shell "opam init --reinit -ni"))
 (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
 (workdir /src)
 (run (shell "sudo chown opam /src"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "cd ~/opam-repository && (git cat-file -e 4c972ba0fc24bcf3f84a30d19f8d725f7ce382a4 || git fetch origin master) && git reset -q --hard 4c972ba0fc24bcf3f84a30d19f8d725f7ce382a4 && git log --no-decorate -n1 --oneline && opam update -u"))
 (copy (src crs.opam crs-tests.opam crs-dev.opam) (dst ./))
 (run (network host)
      (shell  "opam pin add -yn crs.dev './' && \
             \nopam pin add -yn crs-tests.dev './' && \
             \nopam pin add -yn crs-dev.dev './'"))
 (run (network host)
      (shell "echo '(lang dune 3.0)' > './dune-project'"))
 (env DEPS "astring.0.8.5 base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base bos.0.2.1 cmdliner.1.3.0 csexp.1.5.2 dune.3.20.1 dyn.3.20.1 fmt.0.11.0 fpath.0.7.3 jsonm.1.0.2 logs.0.9.0 menhir.20240715 menhirCST.20240715 menhirLib.20240715 menhirSdk.20240715 num.1.6 ocaml.5.0.0 ocaml-base-compiler.5.0.0 ocaml-config.3 ocaml-options-vanilla.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 ocamlgraph.2.2.0 opam-core.2.4.1 opam-dune-lint.0.6 opam-file-format.2.2.0 opam-format.2.4.1 opam-repository.2.4.1 opam-state.2.4.1 ordering.3.20.1 parsexp.v0.16.0 patch.3.0.0 pp.2.0.0 re.1.13.2 rresult.0.7.0 seq.base sexplib.v0.16.0 sexplib0.v0.16.0 sha.1.15.4 spdx_licenses.1.4.0 stdlib-shims.0.3.0 stdune.3.20.1 swhid_core.0.1 topkg.1.1.0 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.2 --depext-only -y deps_for_opam_dune_lint.opam $DEPS"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam install $DEPS"))
 (env CI true)
 (env OCAMLCI true)
 (workdir /src)
 (copy (src .) (dst /src/))
 (run (shell "opam lint"))
 (run (shell "opam exec -- opam-dune-lint"))
)

2025-09-01 13:37.59: Waiting for resource in pool OCluster
2025-09-01 13:37.59: Waiting for worker…
2025-09-01 13:37.59: Got resource from pool OCluster
Building on toxis.caelum.ci.dev
HEAD is now at ac84194 Upgrade actions/checkout in other workflows
HEAD is now at 74e2d64 Upgrade actions/attest-build-provenance

(from ocaml/opam:debian-12-ocaml-5.0@sha256:124f347f91e67bbee17e253ff93ee3b3dc82ad2b4429aaae0ec31e2d2f084723)
Unable to find image 'ocaml/opam:debian-12-ocaml-5.0@sha256:124f347f91e67bbee17e253ff93ee3b3dc82ad2b4429aaae0ec31e2d2f084723' locally
docker.io/ocaml/opam@sha256:124f347f91e67bbee17e253ff93ee3b3dc82ad2b4429aaae0ec31e2d2f084723: Pulling from ocaml/opam
bbd0d7f7db1c: Pulling fs layer
977a790bb8ec: Pulling fs layer
f3ee9fde5c65: Pulling fs layer
0527b47d128f: Pulling fs layer
265ba04f76d8: Pulling fs layer
f3ee9fde5c65: Waiting
bbd0d7f7db1c: Waiting
265ba04f76d8: Waiting
0527b47d128f: Waiting
977a790bb8ec: Waiting
bbd0d7f7db1c: Verifying Checksum
bbd0d7f7db1c: Download complete
977a790bb8ec: Verifying Checksum
977a790bb8ec: Download complete
f3ee9fde5c65: Download complete
0527b47d128f: Verifying Checksum
0527b47d128f: Download complete
265ba04f76d8: Verifying Checksum
265ba04f76d8: Download complete
bbd0d7f7db1c: Pull complete
977a790bb8ec: Pull complete
f3ee9fde5c65: Pull complete
0527b47d128f: Pull complete
265ba04f76d8: Pull complete
Digest: sha256:124f347f91e67bbee17e253ff93ee3b3dc82ad2b4429aaae0ec31e2d2f084723
Status: Downloaded newer image for ocaml/opam@sha256:124f347f91e67bbee17e253ff93ee3b3dc82ad2b4429aaae0ec31e2d2f084723
2025-09-01 13:38.00 ---> using "724cc3077250e8fe6f5c0e7d73a17b3076772e78814e1ca4ca8477b85b4ec558" from cache

/: (comment debian-12-5.0_opam-2.4)

/: (user (uid 1000) (gid 1000))

/: (env CLICOLOR_FORCE 1)

/: (env OPAMCOLOR always)

/: (workdir /src)

/src: (run (shell "sudo ln -f /usr/bin/opam-2.2 /usr/bin/opam"))
2025-09-01 13:38.00 ---> using "64b5882bfea77afb470868c7fa030b3ecb8531d5ff166ae247ae1f2513adc4aa" from cache

/src: (run (shell "opam init --reinit -ni"))
Configuring from /home/opam/.opamrc and then from 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.

This development version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.2, which can't be reverted.
You may want to back it up before going further.

Continue? [y/n] y
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-09-01 13:38.00 ---> using "d26e29d2f09679b54f3b60b9db609c4dd47d9a0e838ab2fc7ba522cbb8ec4704" from cache

/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-134-generic
The OCaml toplevel, version 5.0.0
2.2.1
2025-09-01 13:38.00 ---> using "c2a130235ab32ddfa1219c24557556674ef2be50b4fa0c943d67d8c030d78b56" from cache

/src: (workdir /src)

/src: (run (shell "sudo chown opam /src"))
2025-09-01 13:38.00 ---> using "a75fc5e8dfc8dae226b2811f7d54a1754583feed76f930269f2a86502934ee0b" from cache

/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "cd ~/opam-repository && (git cat-file -e 4c972ba0fc24bcf3f84a30d19f8d725f7ce382a4 || git fetch origin master) && git reset -q --hard 4c972ba0fc24bcf3f84a30d19f8d725f7ce382a4 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
 * branch                  master     -> FETCH_HEAD
   ee24528071..f2cd184cfc  master     -> origin/master
4c972ba0fc Merge pull request #28397 from maiste/release-dune-3.20.1

<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from git+file:///home/opam/opam-repository

Everything as up-to-date as possible (run with --verbose to show unavailable upgrades).
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
# Run eval $(opam env) to update the current shell environment
2025-09-01 13:38.00 ---> using "eb781fd0318f96dc7f3e585d4f811b097535bf1c37f70933d68a99c19ef8890e" from cache

/src: (copy (src crs.opam crs-tests.opam crs-dev.opam) (dst ./))
2025-09-01 13:38.00 ---> using "2656301a4a3d22865c6d4112d414004cdc2f32b5d215c161ea574a72d70f8789" from cache

/src: (run (network host)
           (shell  "opam pin add -yn crs.dev './' && \
                  \nopam pin add -yn crs-tests.dev './' && \
                  \nopam pin add -yn crs-dev.dev './'"))
[crs.dev] synchronised (file:///src)
crs is now pinned to file:///src (version dev)
Package crs-tests does not exist, create as a NEW package? [y/n] y
[crs-tests.dev] synchronised (file:///src)
crs-tests is now pinned to file:///src (version dev)
Package crs-dev does not exist, create as a NEW package? [y/n] y
[crs-dev.dev] synchronised (file:///src)
crs-dev is now pinned to file:///src (version dev)
2025-09-01 13:38.00 ---> using "e59c0c4bec55fa1b3482b3a20fb3b5b92bdf6b8ebda4f52bf0eca6f18f3b4b73" from cache

/src: (run (network host)
           (shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-09-01 13:38.00 ---> using "53e7b8b401b54bdcf83f9551b1b227646876e648a188edb8a19d3be02268d8c9" from cache

/src: (env DEPS "astring.0.8.5 base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base bos.0.2.1 cmdliner.1.3.0 csexp.1.5.2 dune.3.20.1 dyn.3.20.1 fmt.0.11.0 fpath.0.7.3 jsonm.1.0.2 logs.0.9.0 menhir.20240715 menhirCST.20240715 menhirLib.20240715 menhirSdk.20240715 num.1.6 ocaml.5.0.0 ocaml-base-compiler.5.0.0 ocaml-config.3 ocaml-options-vanilla.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 ocamlgraph.2.2.0 opam-core.2.4.1 opam-dune-lint.0.6 opam-file-format.2.2.0 opam-format.2.4.1 opam-repository.2.4.1 opam-state.2.4.1 ordering.3.20.1 parsexp.v0.16.0 patch.3.0.0 pp.2.0.0 re.1.13.2 rresult.0.7.0 seq.base sexplib.v0.16.0 sexplib0.v0.16.0 sha.1.15.4 spdx_licenses.1.4.0 stdlib-shims.0.3.0 stdune.3.20.1 swhid_core.0.1 topkg.1.1.0 uutf.1.0.4")

/src: (env CI true)

/src: (env OCAMLCI true)

/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "opam update --depexts && opam install --cli=2.2 --depext-only -y deps_for_opam_dune_lint.opam $DEPS"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bookworm InRelease
- Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
- Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
- Get:4 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [277 kB]
- Fetched 380 kB in 1s (720 kB/s)
- Reading package lists...
- 
[ERROR] No package named deps_for_opam_dune_lint found.
"/usr/bin/env" "bash" "-c" "opam update --depexts && opam install --cli=2.2 --depext-only -y deps_for_opam_dune_lint.opam $DEPS" failed with exit status 5
2025-09-01 13:38.02: Job failed: Failed: Build failed