Skip to content

Fix qcheck-alcotest dependency in irmin-test.opam#2393

Open
cuihtlauac wants to merge 2 commits intomirage:mainfrom
cuihtlauac:fix-qcheck-alcotest-dependency
Open

Fix qcheck-alcotest dependency in irmin-test.opam#2393
cuihtlauac wants to merge 2 commits intomirage:mainfrom
cuihtlauac:fix-qcheck-alcotest-dependency

Conversation

@cuihtlauac
Copy link

Summary

  • Remove the with-test constraint from qcheck-alcotest dependency in irmin-test.opam

Problem

dune build fails on a fresh opam switch with missing qcheck-alcotest package.

The test/irmin/dune file declares a test that uses qcheck-alcotest as a library dependency. Since dune builds tests by default, this dependency is needed at build time, not just when running tests.

The with-test constraint in opam means the dependency is only installed when using opam install --with-test, but dune needs it for the default build.

Test plan

  • Create fresh opam local switch
  • Install dependencies with opam install --deps-only .
  • Verify dune build succeeds

🤖 Generated with Claude Code

Remove the `with-test` constraint from qcheck-alcotest dependency.

The test/irmin/dune file declares a test that uses qcheck-alcotest
as a library dependency. Since dune builds tests by default, this
dependency is needed at build time, not just when running tests.

Without this fix, `dune build` fails on a fresh opam switch because
qcheck-alcotest is not installed (opam only installs `with-test`
dependencies when using `--with-test`).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
irmin-test.opam Outdated
"vector" {with-test & >= "1.0.0"}
"alcotest" {>= "1.7.0" & with-test}
"qcheck-alcotest" {>= "0.21.1" & with-test}
"qcheck-alcotest" {>= "0.21.1"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you really need a Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> attribution for this change?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure. It did it in the first place.

Co-authored-by: zach <zachshipko@gmail.com>
@zshipko
Copy link
Contributor

zshipko commented Jan 29, 2026

hm, i'm not sure why it's still using qcheck-alcotest.0.90.0, maybe we need to add bounds here: https://github.com/mirage/irmin/blob/eio/irmin.opam#L38

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.

3 participants