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

Regression in #11028 when using dune subst on a project with an opam file #11045

Open
btjorge opened this issue Oct 28, 2024 · 0 comments
Open

Comments

@btjorge
Copy link

btjorge commented Oct 28, 2024

I got notified of the closing of #10927, so I tried to test my opam file pin use-case, but the build failed with an error. Here's a reproduction test without opam :

Reproduction

$ mkdir test && cd test

$ cat > dune-project << EOF
(lang dune 3.17)
(name test)
(version 0.1)
(generate_opam_files)
(package (name test) (allow_empty))
EOF

$ dune build # generates the opam file

Previous Behavior

$ dune subst # does not fail

Actual Behavior

$ dune subst 
File "test.opam", line 1, characters 10-25:
1 | # This file is generated by dune, edit dune-project instead
              ^^^^^^^^^^^^^^^
Error: repository does not contain any version information

Note that the substitution works has expected

Specifications

  • dune from main branch
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

No branches or pull requests

1 participant