Skip to content

chore: replace revdeps-dev-build workflow with a full nix derivation - #14228

Merged
Alizter merged 1 commit into
ocaml:mainfrom
Alizter:push-vkvnttnwlkrv
Apr 20, 2026
Merged

Alizter merged 1 commit into
ocaml:mainfrom
Alizter:push-vkvnttnwlkrv

Conversation

@Alizter

@Alizter Alizter commented Apr 17, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #14214

Add an oxcaml-trunk-build package that builds OxCaml trunk using the development version of Dune. This replaces the multi-step GitHub Actions workflow with a single nix build .#oxcaml-trunk-build invocation.

The derivation overrides the default Dune package to inject a version (extracted from otherlibs/dune-rpc/types.ml) into dune-project and the opam file, so that OxCaml's configure version check passes.

The menhir 20231231 override is extracted into nix/menhir.nix to be shared between the oxcaml-trunk-build package and the ox-trunk devShell.

@Sudha247 Sudha247 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

Comment thread .github/workflows/revdeps-dev-build.yml Resolved
@Alizter
Alizter force-pushed the push-vkvnttnwlkrv branch 2 times, most recently from ca1b683 to 009fa2f Compare April 20, 2026 09:43
Add an oxcaml-trunk-build package that builds OxCaml trunk using the
development version of Dune. This replaces the multi-step GitHub Actions
workflow with a single `nix build .#oxcaml-trunk-build` invocation.

The derivation overrides the default Dune package to inject a version
(extracted from otherlibs/dune-rpc/types.ml) into dune-project and the
opam file, so that OxCaml's configure version check passes.

The menhir 20231231 override is extracted into nix/menhir.nix to be
shared between the oxcaml-trunk-build package and the ox-trunk devShell.

Signed-off-by: Ali Caglayan <[email protected]>
@Alizter
Alizter force-pushed the push-vkvnttnwlkrv branch from 009fa2f to 87c438d Compare April 20, 2026 09:54
@Alizter
Alizter merged commit c42998c into ocaml:main Apr 20, 2026
1 check passed
@Alizter
Alizter deleted the push-vkvnttnwlkrv branch April 20, 2026 09:55
@Sudha247 Sudha247 mentioned this pull request Apr 20, 2026
19 tasks done
Alizter pushed a commit that referenced this pull request Apr 20, 2026
The nightly builds have stopped working because the way they work is
that they add the `version` info to the `dune-project` and then run
`make release`. Since #14108 was merged, this would, instead of
promoting the change automatically create a diff and as part of it make
`make release` fail.

This PR updates the `make release` invocation to avoid `@install` and
use `dune.install` as target (which is the same thing that we do in the
OPAM file of Dune), which does not trigger the diff action and does not
trigger the diff failure.

Also updates #14228 as this should avoid the need to patch the OPAM
file to avoid the diff failure.

Thanks for @Alizter helping with the debugging and clearing up the
confusion around all of this.

Signed-off-by: Marek Kubica <[email protected]>
Alizter added a commit that referenced this pull request Apr 20, 2026
The nightly builds have stopped working because the way they work is
that they add the `version` info to the `dune-project` and then run
`make release`. Since #14108 was merged, this would, instead of
promoting the change automatically, create a diff and as part of it make
`make release` fail.

This PR updates the `make release` invocation to avoid `@install` and
use `dune.install` as target (which is the same thing that we do in the
OPAM file of Dune), which does not trigger the diff action and does not
trigger the diff failure.

Also updates the code introduced as a hack in #14228 as this should
avoid the need to patch the OPAM file to avoid the diff failure.

Thanks for @Alizter helping with the debugging and clearing up the
confusion around all of this.
@Alizter Alizter added this to the 3.23.0 milestone Jul 8, 2026
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.

OxCaml Trunk CI job fails on diff including uncexpected version field

2 participants