Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workaround for missing batteriesConfig dependency in inline tests #1121

Merged

Conversation

sim642
Copy link
Contributor

@sim642 sim642 commented Sep 9, 2023

Hopefully fixes this issue: ocaml/opam-repository#24327 (comment).

I could reproduce it by commenting out the test stanza in src/dune and running dune clean && dune build @src/runtest. After these changes that problem no longer appears for me like that, so hopefully it's also fixed for the CI.

@UnixJunkie UnixJunkie merged commit 1f5d92b into ocaml-batteries-team:master Sep 11, 2023
16 checks passed
@UnixJunkie
Copy link
Member

dune clean && dune build @src/runtest

does reproduce the error, even w/ ocaml-5.0.0

@UnixJunkie
Copy link
Member

You only fixed the target batteries_unthreaded; in src/dune there is also batteries which also have this same inline_tests section.
Is this voluntary?

@sim642
Copy link
Contributor Author

sim642 commented Sep 11, 2023

You only fixed the target batteries_unthreaded; in src/dune there is also batteries which also have this same inline_tests section.
Is this voluntary?

But that only has (modules batteriesThread batRMutex batMutex), so BatteriesConfig shouldn't belong to its inline tests.

@UnixJunkie
Copy link
Member

Ok, I see.
Thanks for the fix.

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