dune-release icon indicating copy to clipboard operation
dune-release copied to clipboard

Failed to run in GitHub Actions (assertion failed)

Open Nymphium opened this issue 2 years ago • 4 comments

In this run (setting up with setup-ocaml action with default options (and OCaml 5.0)): https://github.com/Nymphium/nloge/actions/runs/4876578507/jobs/8700246942

dune-release opam submit fails with its error log:

[-] Checking out a local release-nloge-0.0.1 branch dune-release: internal error, uncaught exception: File "lib/sos.ml", line 35, characters 28-34: Assertion failed

Nymphium avatar May 04 '23 11:05 Nymphium

For reference the line in question is https://github.com/tarides/dune-release/blob/17e1cae2a56efad88b1cb02b16124beaa898c92f/lib/sos.ml#L35

It could be that you're in a different folder and this is buggy. What folder are you running in? Also, you might want to run dune-release opam pkg first, to avoid the warning about a missing .url file.

Leonidas-from-XIV avatar May 04 '23 12:05 Leonidas-from-XIV

I run on the project root (/home/runner/work/nloge/nloge) and doing dune-release opam pkg before🤔 https://github.com/Nymphium/nloge/actions/runs/4876578507/workflow#L36-L43

And I forgot to say but I can't reproduce the problem in my local environment.

Nymphium avatar May 04 '23 13:05 Nymphium

I found out that --draft causes the problem.

Nymphium avatar May 04 '23 17:05 Nymphium

I confirm this assertion is triggered when I pass -C since the opam file / dune project is in a subfolder of the git repo.

gares avatar Aug 10 '23 14:08 gares