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

Failed to run in GitHub Actions (assertion failed) #471

Open
Nymphium opened this issue May 4, 2023 · 4 comments
Open

Failed to run in GitHub Actions (assertion failed) #471

Nymphium opened this issue May 4, 2023 · 4 comments

Comments

@Nymphium
Copy link

Nymphium commented May 4, 2023

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

@Leonidas-from-XIV
Copy link
Member

For reference the line in question is

if sandbox then assert (List.hd (Fpath.segs d) = "_build");

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.

@Nymphium
Copy link
Author

Nymphium commented May 4, 2023

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
Copy link
Author

Nymphium commented May 4, 2023

I found out that --draft causes the problem.

@gares
Copy link

gares commented Aug 10, 2023

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

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

3 participants