```
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam depext -i conf-m4 && opam depext -i dune 'odoc>=1.5.0'"))
Opam plugin "depext" may require upgrading/reinstalling. Reinstall the plugin on the current switch? [Y/n] y
[WARNING] Opam package conf-git.1.1 depends on the following system package that can no longer be found: git
The following actions will be performed:
- recompile opam-depext 1.2.1-1
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved opam-depext.1.2.1-1 (cached)
-> removed opam-depext.1.2.1-1
-> installed opam-depext.1.2.1-1
Done.
<><> opam-depext.1.2.1-1 installed successfully <><><><><><><><><><><><><><><><>
=> opam-depext is unnecessary when used with opam >= 2.1. Please use opam install directly instead
# Run eval $(opam env) to update the current shell environment
<><> Carrying on to "opam depext -i conf-m4" ><><><><><><><><><><><><><><><><><>
You are using opam 2.1+, where external dependency handling has been integrated: consider calling opam directly, the 'depext' plugin interface is provided for backwards compatibility only
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=alpine, os-family=alpine
[WARNING] Opam package conf-git.1.1 depends on the following system package that can no longer be found: git
# The following system packages are needed:
m4
[WARNING] Opam package conf-git.1.1 depends on the following system package that can no longer be found: git
opam: PACKAGES... arguments: Invalid character in package name
"\027[01;04mconf-git\027[0m\027[04m"
Usage: opam install [OPTION]... [PACKAGES]...
Try `opam install --help' or `opam --help' for more information.
"/usr/bin/env" "bash" "-c" "opam depext -i conf-m4 && opam depext -i dune 'odoc>=1.5.0'" failed with exit status 2
2024-05-17 15:44.40: Job failed: Failed: Build failed
```
Step(s) to reproduce
Either, rerun the failed lint-doc jobs on the master branch here
or, execute this shell script:
Context
As reported at https://github.com/ocurrent/ocaml-ci/pull/932#issuecomment-2118195395, the ocaml-ci
lint-doc
job is failing due to (what appears to be) ascii escape sequences being included in the package name when trying to installconf-git
:Step(s) to reproduce
Either, rerun the failed
lint-doc
jobs on the master branch here or, execute this shell script:Technical details
Making the following small fix to the script lets the depext installation go thru:
This also avoids the warning resulting from use of the deprecated
depext
plugin.