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

output says "OS packages installation successful", exit code is 1 #144

Open
raphael-proust opened this issue Jan 14, 2022 · 0 comments
Open

Comments

@raphael-proust
Copy link

Using the ocaml/opam:debian-testing-opam docker image in a CI, I have jobs where opam depext indicates success via stdout but failure via its exit code.

https://gitlab.com/nomadic-labs/data-encoding/-/jobs/1963430311
https://gitlab.com/nomadic-labs/data-encoding/-/jobs/1965645560

Success can be shown via "OS packages installation successful" or "All required OS packages found" (depending on the some caching of installed things).

The command that causes the issue is

opam install . --dry-run --deps-only --locked --with-test --with-doc --yes | awk '/-> installed/{print $3}' | xargs opam depext -iy

From https://gitlab.com/gasche/gitlab-ocaml-ci-example/-/blob/main/.gitlab-ci.yml

The command is somewhat outdated but does it explain the discrepancy between the output and the exit code?

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