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

mirage-runtime 4.*: avoid ppxlib >= 0.29.0 #23312

Merged
merged 2 commits into from
Feb 14, 2023

Conversation

hannesm
Copy link
Member

@hannesm hannesm commented Feb 14, 2023

The underlying issue is opam-monorepo:

==> Using lockfile /src/mirage.opam.locked
Successfully pulled 117/117 repositories
�[01;2m�[01;35m2023-02-14 09:31.51 ---> saved as "ae35e626e84e036206eb1c0f2b774e22b35519257a4891cdc9e7aea5da8ec6b8"�[0m

�[01;34m/src/: (env DUNE_CACHE enabled)�[0m

�[01;34m/src/: (env DUNE_CACHE_TRANSPORT direct)�[0m

�[01;34m/src/: (run (cache (dune-build-cache (target /home/opam/.cache/dune)))
(network host)
(shell "opam exec -- make build"))�[0m
dune build
Error: Too many opam files for package "ppx_sexp_conv":

  • duniverse/ppx_sexp_conv/ppx_sexp_conv.opam
  • duniverse/ppxlib/bench/vendored/ppx_sexp_conv.v0.15.1/ppx_sexp_conv.opam make: *** [Makefile:80: build] Error 1
    "/bin/bash" "-c" "opam exec -- make build" failed with exit status 2

2023-02-14 09:31.52: Job failed: Failed: Build failed

The underlying issue is opam-monorepo:

==> Using lockfile /src/mirage.opam.locked
Successfully pulled 117/117 repositories
�[01;2m�[01;35m2023-02-14 09:31.51 ---> saved as "ae35e626e84e036206eb1c0f2b774e22b35519257a4891cdc9e7aea5da8ec6b8"�[0m

�[01;34m/src/: (env DUNE_CACHE enabled)�[0m

�[01;34m/src/: (env DUNE_CACHE_TRANSPORT direct)�[0m

�[01;34m/src/: (run (cache (dune-build-cache (target /home/opam/.cache/dune)))
            (network host)
            (shell "opam exec -- make build"))�[0m
dune build
Error: Too many opam files for package "ppx_sexp_conv":
- duniverse/ppx_sexp_conv/ppx_sexp_conv.opam
- duniverse/ppxlib/bench/vendored/ppx_sexp_conv.v0.15.1/ppx_sexp_conv.opam
make: *** [Makefile:80: build] Error 1
"/bin/bash" "-c" "opam exec -- make build" failed with exit status 2

2023-02-14 09:31.52: Job failed: Failed: Build failed
@kit-ty-kate
Copy link
Member

I'm trying to get a hold of someone in the ppxlib team to see if this can be fixed in a potential 0.29.1 (in which case only != "0.29.0" would be necessary)

@hannesm
Copy link
Member Author

hannesm commented Feb 14, 2023

@kit-ty-kate thanks. also, @TheLortex mentioned that ocaml/dune#7058 may be a fine solution once implemented and released. Since the ppxlib release didn't even bother to add an entry about the vendoring in the changelog, I felt the best is to mark this conflict and potentially in the future relax the constraint.

Copy link
Member

@kit-ty-kate kit-ty-kate left a comment

Choose a reason for hiding this comment

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

ocaml-ppx/ppxlib#386 just got merged and 0.29.1 should get released soon.

packages/mirage-runtime/mirage-runtime.4.0.0/opam Outdated Show resolved Hide resolved
packages/mirage-runtime/mirage-runtime.4.0.0~beta1/opam Outdated Show resolved Hide resolved
packages/mirage-runtime/mirage-runtime.4.0.0~beta2/opam Outdated Show resolved Hide resolved
packages/mirage-runtime/mirage-runtime.4.0.0~beta3/opam Outdated Show resolved Hide resolved
packages/mirage-runtime/mirage-runtime.4.1.0/opam Outdated Show resolved Hide resolved
packages/mirage-runtime/mirage-runtime.4.2.1/opam Outdated Show resolved Hide resolved
packages/mirage-runtime/mirage-runtime.4.3.0/opam Outdated Show resolved Hide resolved
packages/mirage-runtime/mirage-runtime.4.3.1/opam Outdated Show resolved Hide resolved
packages/mirage-runtime/mirage-runtime.4.3.2/opam Outdated Show resolved Hide resolved
packages/mirage-runtime/mirage-runtime.4.3.3/opam Outdated Show resolved Hide resolved
@kit-ty-kate
Copy link
Member

Thanks

@kit-ty-kate kit-ty-kate merged commit 3f2b45e into ocaml:master Feb 14, 2023
@pitag-ha
Copy link
Member

Thanks a lot for the super quick fix on this, @kit-ty-kate!

FWIW, I've also just added an entry to the 0.29.0 release notes pointing out this problem (@hannesm). The reason why we hadn't added it yet is simply that we missed the chain of consequences, starting with adding an isolated ppxlib-bench package to benchmark the ppxlib driver and ending at this problem here.

PD: ocaml/dune#7058 seems like it would be nice!

@pitag-ha
Copy link
Member

Also, if something like this happens again in the future, please feel free to open an issue at ppxlib. We care a lot about keeping the ecosystem compatible.

@hannesm hannesm deleted the mirage-runtime-ppxlib branch February 15, 2023 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants