git clone --recursive "https://github.com/ocaml-ppx/ppxlib.git" -b "0.37" && cd "ppxlib" && git reset --hard d5e0dbaf
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.08@sha256:23c85daf4eb9a91d154cf2f9fed47f4f9b9fa788adc9c1fc7f0802e3dc06d7c4
# debian-12-4.08_opam-2.3
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.3 /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 35eb2f107a989a2d623b0bbe170696398fcb9b1e || git fetch origin master) && git reset -q --hard 35eb2f107a989a2d623b0bbe170696398fcb9b1e && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 ppxlib.opam ppxlib-tools.opam ppxlib-bench.opam ./
RUN opam pin add -yn ppxlib.dev './' && \
opam pin add -yn ppxlib-tools.dev './' && \
opam pin add -yn ppxlib-bench.dev './'
RUN echo '(lang dune 3.0)' > './dune-project'
ENV DEPS="base-bigarray.base base-threads.base base-unix.base cinaps.v0.15.1 cmdliner.1.3.0 dune.3.18.2 ocaml.4.08.1 ocaml-base-compiler.4.08.1 ocaml-compiler-libs.v0.12.4 ocaml-config.1 ocamlfind.1.9.8 ppx_derivers.1.2.1 re.1.11.0 seq.base sexplib0.v0.16.0 stdlib-shims.0.3.0"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.3 --depext-only -y ppxlib.dev ppxlib-tools.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . /src
RUN opam exec -- dune build --only-packages=ppxlib,ppxlib-tools @install @check @runtest && rm -rf _build
END-OF-DOCKERFILE
docker build .
2025-05-12 08:44.37: New job: test ocaml-ppx/ppxlib https://github.com/ocaml-ppx/ppxlib.git#refs/heads/0.37 (d5e0dbafc8d4516aaf9f4cfe8ed3e75201a32ca9) (linux-x86_64:debian-12-4.08_opam-2.3)Base: ocaml/opam:debian-12-ocaml-4.08@sha256:23c85daf4eb9a91d154cf2f9fed47f4f9b9fa788adc9c1fc7f0802e3dc06d7c4Opam project buildTo reproduce locally:git clone --recursive "https://github.com/ocaml-ppx/ppxlib.git" -b "0.37" && cd "ppxlib" && git reset --hard d5e0dbafcat > Dockerfile <<'END-OF-DOCKERFILE'FROM ocaml/opam:debian-12-ocaml-4.08@sha256:23c85daf4eb9a91d154cf2f9fed47f4f9b9fa788adc9c1fc7f0802e3dc06d7c4# debian-12-4.08_opam-2.3USER 1000:1000ENV CLICOLOR_FORCE="1"ENV OPAMCOLOR="always"WORKDIR /srcRUN sudo ln -f /usr/bin/opam-2.3 /usr/bin/opamRUN opam init --reinit -niRUN uname -rs && opam exec -- ocaml -version && opam --versionWORKDIR /srcRUN sudo chown opam /srcRUN cd ~/opam-repository && (git cat-file -e 35eb2f107a989a2d623b0bbe170696398fcb9b1e || git fetch origin master) && git reset -q --hard 35eb2f107a989a2d623b0bbe170696398fcb9b1e && git log --no-decorate -n1 --oneline && opam update -uCOPY --chown=1000:1000 ppxlib.opam ppxlib-tools.opam ppxlib-bench.opam ./RUN opam pin add -yn ppxlib.dev './' && \opam pin add -yn ppxlib-tools.dev './' && \opam pin add -yn ppxlib-bench.dev './'RUN echo '(lang dune 3.0)' > './dune-project'ENV DEPS="base-bigarray.base base-threads.base base-unix.base cinaps.v0.15.1 cmdliner.1.3.0 dune.3.18.2 ocaml.4.08.1 ocaml-base-compiler.4.08.1 ocaml-compiler-libs.v0.12.4 ocaml-config.1 ocamlfind.1.9.8 ppx_derivers.1.2.1 re.1.11.0 seq.base sexplib0.v0.16.0 stdlib-shims.0.3.0"ENV CI="true"ENV OCAMLCI="true"RUN opam update --depexts && opam install --cli=2.3 --depext-only -y ppxlib.dev ppxlib-tools.dev $DEPSRUN opam install $DEPSCOPY --chown=1000:1000 . /srcRUN opam exec -- dune build --only-packages=ppxlib,ppxlib-tools @install @check @runtest && rm -rf _buildEND-OF-DOCKERFILEdocker build .END-REPRO-BLOCK2025-05-12 08:44.37: Using cache hint "ocaml-ppx/ppxlib-ocaml/opam:debian-12-ocaml-4.08@sha256:23c85daf4eb9a91d154cf2f9fed47f4f9b9fa788adc9c1fc7f0802e3dc06d7c4-debian-12-4.08_opam-2.3-387b6a054785b059384a94683aa3252e"2025-05-12 08:44.37: Using OBuilder spec:((from ocaml/opam:debian-12-ocaml-4.08@sha256:23c85daf4eb9a91d154cf2f9fed47f4f9b9fa788adc9c1fc7f0802e3dc06d7c4)(comment debian-12-4.08_opam-2.3)(user (uid 1000) (gid 1000))(env CLICOLOR_FORCE 1)(env OPAMCOLOR always)(workdir /src)(run (shell "sudo ln -f /usr/bin/opam-2.3 /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 35eb2f107a989a2d623b0bbe170696398fcb9b1e || git fetch origin master) && git reset -q --hard 35eb2f107a989a2d623b0bbe170696398fcb9b1e && git log --no-decorate -n1 --oneline && opam update -u"))(copy (src ppxlib.opam ppxlib-tools.opam ppxlib-bench.opam) (dst ./))(run (network host)(shell "opam pin add -yn ppxlib.dev './' && \\nopam pin add -yn ppxlib-tools.dev './' && \\nopam pin add -yn ppxlib-bench.dev './'"))(run (network host)(shell "echo '(lang dune 3.0)' > './dune-project'"))(env DEPS "base-bigarray.base base-threads.base base-unix.base cinaps.v0.15.1 cmdliner.1.3.0 dune.3.18.2 ocaml.4.08.1 ocaml-base-compiler.4.08.1 ocaml-compiler-libs.v0.12.4 ocaml-config.1 ocamlfind.1.9.8 ppx_derivers.1.2.1 re.1.11.0 seq.base sexplib0.v0.16.0 stdlib-shims.0.3.0")(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.3 --depext-only -y ppxlib.dev ppxlib-tools.dev $DEPS"))(run (cache (opam-archives (target /home/opam/.opam/download-cache)))(network host)(shell "opam install $DEPS"))(copy (src .) (dst /src))(run (shell "opam exec -- dune build --only-packages=ppxlib,ppxlib-tools @install @check @runtest && rm -rf _build")))2025-05-12 08:44.37: Waiting for resource in pool OCluster2025-05-12 08:44.37: Waiting for worker…2025-05-12 08:44.37: Got resource from pool OClusterBuilding on x86-bm-c2.sw.ocaml.orgHEAD is now at db1eb0a3 Update changelog related actions' versionHEAD is now at d5e0dbaf Merge pull request #578 from NathanReb/backport-constant-loc-fix(from ocaml/opam:debian-12-ocaml-4.08@sha256:23c85daf4eb9a91d154cf2f9fed47f4f9b9fa788adc9c1fc7f0802e3dc06d7c4)2025-05-12 08:44.38 ---> using "44ab722c6d76cc4aa083f99994b6eb04bd97004720a37e6316ca14ec9a9ee4aa" from cache/: (comment debian-12-4.08_opam-2.3)/: (user (uid 1000) (gid 1000))/: (env CLICOLOR_FORCE 1)/: (env OPAMCOLOR always)/: (workdir /src)/src: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))2025-05-12 08:44.38 ---> using "c92368b99d7a8aac74c485226681652fcd662260dce44637b5995f38210c2495" 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] yFormat upgrade done.<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>[default] Initialised2025-05-12 08:44.38 ---> using "e3d3ee8b007116cd79c60bf538c2c74d2d80289efa5ca49e098d0531ea8042f0" from cache/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))Linux 5.15.0-134-genericThe OCaml toplevel, version 4.08.12.3.02025-05-12 08:44.38 ---> using "5cfb075ae25d89e75090403e89f47e02bbc634ff0c723fdf6c2641f09eb044e0" from cache/src: (workdir /src)/src: (run (shell "sudo chown opam /src"))2025-05-12 08:44.38 ---> using "adc7a03170ff41164ae76112dd88b84acb11e5f18778a3735ca88eb438473c97" from cache/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))(network host)(shell "cd ~/opam-repository && (git cat-file -e 35eb2f107a989a2d623b0bbe170696398fcb9b1e || git fetch origin master) && git reset -q --hard 35eb2f107a989a2d623b0bbe170696398fcb9b1e && git log --no-decorate -n1 --oneline && opam update -u"))From https://github.com/ocaml/opam-repository* branch master -> FETCH_HEAD34a3fc46c3..0d013e603b master -> origin/master35eb2f107a Merge pull request #27838 from maiste/release-dune-3.18.2<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>[default] synchronised from git+file:///home/opam/opam-repositoryEverything 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.# To update the current shell environment, run: eval $(opam env)2025-05-12 08:44.38 ---> using "56a8a8d480c75c6f63961c378f87538fac8c869e891183c38dce5d62eeaca610" from cache/src: (copy (src ppxlib.opam ppxlib-tools.opam ppxlib-bench.opam) (dst ./))2025-05-12 08:44.38 ---> using "4e795b58237879ef8f1abab6070dcbcce42b27c542b5d8263c2eb1e493626eb1" from cache/src: (run (network host)(shell "opam pin add -yn ppxlib.dev './' && \\nopam pin add -yn ppxlib-tools.dev './' && \\nopam pin add -yn ppxlib-bench.dev './'"))[ppxlib.dev] synchronised (file:///src)ppxlib is now pinned to file:///src (version dev)[ppxlib-tools.dev] synchronised (file:///src)ppxlib-tools is now pinned to file:///src (version dev)Package ppxlib-bench does not exist, create as a NEW package? [y/n] y[ppxlib-bench.dev] synchronised (file:///src)ppxlib-bench is now pinned to file:///src (version dev)2025-05-12 08:44.38 ---> using "0c98c919fcd037ae6f3688e4a405c14f7da36f747f7b187155790ff3c08385cf" from cache/src: (run (network host)(shell "echo '(lang dune 3.0)' > './dune-project'"))2025-05-12 08:44.38 ---> using "ff865195618d4cd539c7a6461ab1df98e543a0d958e9eabdfbe29c299e7a9ad0" from cache/src: (env DEPS "base-bigarray.base base-threads.base base-unix.base cinaps.v0.15.1 cmdliner.1.3.0 dune.3.18.2 ocaml.4.08.1 ocaml-base-compiler.4.08.1 ocaml-compiler-libs.v0.12.4 ocaml-config.1 ocamlfind.1.9.8 ppx_derivers.1.2.1 re.1.11.0 seq.base sexplib0.v0.16.0 stdlib-shims.0.3.0")/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.3 --depext-only -y ppxlib.dev ppxlib-tools.dev $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 [258 kB]- Fetched 361 kB in 0s (1425 kB/s)- Reading package lists...<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>[ppxlib.dev] synchronised (file:///src)[ppxlib-tools.dev] synchronised (file:///src)[NOTE] Package ocaml-config is already installed (current version is 1).[NOTE] Package ocaml-base-compiler is already installed (current version is 4.08.1).[NOTE] Package ocaml is already installed (current version is 4.08.1).[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-bigarray is already installed (current version is base).2025-05-12 08:44.38 ---> using "bbd8231b8632a12592b73a87d26df1247d2c57b57b2a414a278279e1e9b2e82f" from cache/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))(network host)(shell "opam install $DEPS"))[NOTE] Package ocaml-config is already installed (current version is 1).[NOTE] Package ocaml-base-compiler is already installed (current version is 4.08.1).[NOTE] Package ocaml is already installed (current version is 4.08.1).[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-bigarray is already installed (current version is base).The following actions will be performed:=== install 10 packages- install cinaps v0.15.1- install cmdliner 1.3.0- install dune 3.18.2- install ocaml-compiler-libs v0.12.4- install ocamlfind 1.9.8- install ppx_derivers 1.2.1- install re 1.11.0- install seq base- install sexplib0 v0.16.0- install stdlib-shims 0.3.0<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>-> retrieved cinaps.v0.15.1 (cached)-> retrieved cmdliner.1.3.0 (cached)-> retrieved ocaml-compiler-libs.v0.12.4 (cached)-> retrieved ocamlfind.1.9.8 (cached)-> retrieved ppx_derivers.1.2.1 (cached)-> retrieved seq.base (cached)-> installed seq.base-> retrieved re.1.11.0 (cached)-> retrieved sexplib0.v0.16.0 (cached)-> retrieved stdlib-shims.0.3.0 (cached)-> retrieved dune.3.18.2 (cached)-> installed cmdliner.1.3.0-> installed ocamlfind.1.9.8-> installed dune.3.18.2-> installed ppx_derivers.1.2.1-> installed stdlib-shims.0.3.0-> installed sexplib0.v0.16.0-> installed ocaml-compiler-libs.v0.12.4-> installed re.1.11.0-> installed cinaps.v0.15.1Done.# To update the current shell environment, run: eval $(opam env)2025-05-12 08:44.38 ---> using "e016a5b9a3289870b0d66b092ecd565381828e189a243998db32832fefa55768" from cache/src: (copy (src .) (dst /src))2025-05-12 08:44.38 ---> using "22cea3ad293df8070ff5447ffe3fddbe7a4c15c377cebbf70d3c4ead73207f2c" from cache/src: (run (shell "opam exec -- dune build --only-packages=ppxlib,ppxlib-tools @install @check @runtest && rm -rf _build"))2025-05-12 08:44.38 ---> using "861fac75943f2ad1b63b9584d8ff58687807040fb72a93d7d0b6f0253e9ef772" from cacheJob succeeded2025-05-12 08:44.39: Job succeeded