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

Fake dune-project file #993

Merged
merged 5 commits into from
Dec 6, 2024
Merged

Fake dune-project file #993

merged 5 commits into from
Dec 6, 2024

Conversation

mtelvers
Copy link
Member

@mtelvers mtelvers commented Dec 4, 2024

Closes #990 and #991

This PR creates a minimal dune-project file which is good enough for dune subst not to fail.

An empty file is not good enough. It must have at least the lang stanza. However, which lang version should be specified as potentially, if a project specifically requests dune version 2, then this hack won't work.

@mtelvers
Copy link
Member Author

mtelvers commented Dec 4, 2024

Some path issues with this on Windows

@mtelvers
Copy link
Member Author

mtelvers commented Dec 4, 2024

I have tried copying all the dune-project from the source tree along with the .opam files but these complete dune-project files fail to build (understandably!). This approach is also problematic as not every project will have a dune-project file.

Copy link
Contributor

@shonfeder shonfeder left a comment

Choose a reason for hiding this comment

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

LGTM as a workaround and it is proven to solve the problem currently. Thanks!

@shonfeder shonfeder merged commit 265d712 into ocurrent:master Dec 6, 2024
2 checks passed
@mtelvers mtelvers deleted the dune-3.17 branch December 6, 2024 14:31
mtelvers added a commit to mtelvers/ocaml-ci that referenced this pull request Dec 19, 2024
This reverts commit 265d712, reversing
changes made to cc9bac4.
mtelvers added a commit to mtelvers/ocaml-ci that referenced this pull request Jan 7, 2025
This reverts commit 265d712, reversing
changes made to cc9bac4.
mtelvers added a commit to mtelvers/ocaml-ci that referenced this pull request Jan 7, 2025
This reverts commit 265d712, reversing
changes made to cc9bac4.
mtelvers added a commit that referenced this pull request Jan 7, 2025
Revert PR #993 now Dune 3.17.1 has been released
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.

ocaml-ci is breaking builds that use pin depends
2 participants