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

ocaml-ci is breaking builds that use pin depends #990

Closed
shonfeder opened this issue Dec 4, 2024 · 0 comments · Fixed by #993
Closed

ocaml-ci is breaking builds that use pin depends #990

shonfeder opened this issue Dec 4, 2024 · 0 comments · Fixed by #993
Labels
type/bug Something isn't working

Comments

@shonfeder
Copy link
Contributor

Context

This is showing up in CI jobs for projects that use vendored dependencies (via git submodules) as

...
[ERROR] The compilation of ocluster-api.dev failed at "dune subst".
...
#=== ERROR while compiling ocluster-api.dev ===================================#
# context     2.3.0 | linux/x86_64 | ocaml-base-compiler.5.2.1 | pinned(file:///src/ocluster)
# path        ~/.opam/5.2/.opam-switch/build/ocluster-api.dev
# command     ~/.opam/5.2/bin/dune subst
# exit-code   1
# env-file    ~/.opam/log/ocluster-api-1-306113.env
# output-file ~/.opam/log/ocluster-api-1-306113.out
### output ###
# File ".", line 1, characters 0-0:
# Error: There is no dune-project file in the current directory, please add one
# with a (name <name>) field in it.
# Hint: 'dune subst' must be executed from the root of the project.

I've seen it in these two builds, so far:

Step(s) to reproduce

This is showing up in ocaml-ci running on itself, starting with cc9bac4

Expected behaviour

It should build vendored dependencies OK.

Technical details

Since I think the earliest this showed up is in the CI results run on cc9bac4 it's possible that some of the upstream changes pulled in from that change are responsible. But this is just a guess as I have not had time to investigate properly yet.

@shonfeder shonfeder added the type/bug Something isn't working label Dec 4, 2024
This was referenced Dec 4, 2024
@shonfeder shonfeder changed the title ocaml-ci is breaking builds that use vendored sub modules ocaml-ci is breaking builds that use pin depends Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant