diff --git a/.github/scripts/main/test.sh b/.github/scripts/main/test.sh index 35ec1387296..a9177df26c1 100644 --- a/.github/scripts/main/test.sh +++ b/.github/scripts/main/test.sh @@ -26,3 +26,9 @@ eval $(opam env) opam install lwt opam list opam config report + +# Make sure opam init (including the sandbox script) works in the absence of OPAMROOT +unset OPAMROOT +rm -r ~/.opam +opam init --bare -vvv +rm -r ~/.opam diff --git a/master_changes.md b/master_changes.md index d3b285e1322..e38715ef023 100644 --- a/master_changes.md +++ b/master_changes.md @@ -176,6 +176,7 @@ users) * Speedup the gentoo depexts test [#6363 @kit-ty-kate] * Add OCaml 5.3 to the build matrix [#6192 @kit-ty-kate] * Add OCaml 5.3/MSVC to the build matrix [#6192 @kit-ty-kate] + * Add a test making sure `opam init` works in the absence of `OPAMROOT` [#5663 @kit-ty-kate] ## Doc * Update the command to install opam to point to the new simplified url on opam.ocaml.org [#6226 @kit-ty-kate]