Skip to content

Conversation

@jmid
Copy link
Member

@jmid jmid commented Nov 18, 2025

Spotted on the revdeps of #28907:

https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/fdb37fd425316c3f17ff1a672f38d79e17f64d31/variant/compilers,4.14,crowbar.0.2.2,revdeps,carton.0.4.3

#=== ERROR while compiling carton.0.4.3 =======================================#
# context              2.5.0~beta1 | linux/x86_64 | ocaml-base-compiler.4.14.2 | file:///home/opam/opam-repository
# path                 ~/.opam/4.14/.opam-switch/build/carton.0.4.3
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p carton -j 71
# exit-code            1
# env-file             ~/.opam/log/carton-7-cbcf23.env
# output-file          ~/.opam/log/carton-7-cbcf23.out
### output ###
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I bin/carton/.hxd_cmdliner.objs/byte -I /home/opam/.opam/4.14/lib/cmdliner -I /home/opam/.opam/4.14/lib/fmt -I /home/opam/.opam/4.14/lib/hxd/core -I /home/opam/.opam/4.14/lib/result -I /home/opam/.opam/4.14/lib/rresult -no-alias-deps -o bin/carton/.hxd_cmdliner.objs/byte/hxd_cmdliner.cmo -c -impl bin/carton/hxd_cmdliner.ml)
# File "bin/carton/hxd_cmdliner.ml", line 124, characters 12-23:
# 124 |   let env = Arg.env_var "HXD_COLOR" in
#                   ^^^^^^^^^^^
# Error: Unbound value Arg.env_var
# [...]

with the deprecated Arg.env_var removed in cmdliner.2.0.0:
https://github.com/dbuenzli/cmdliner/blob/master/CHANGES.md#api-changes

@avsm avsm merged commit de954e1 into ocaml:master Nov 19, 2025
2 of 4 checks passed
@jmid jmid deleted the carton-cmdliner-bound branch November 19, 2025 07:42
@jmid jmid mentioned this pull request Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants