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

opam repository set-url --strict does not fail on errors #4779

Closed
kit-ty-kate opened this issue Jul 31, 2021 · 0 comments · Fixed by #4968
Closed

opam repository set-url --strict does not fail on errors #4779

kit-ty-kate opened this issue Jul 31, 2021 · 0 comments · Fixed by #4968

Comments

@kit-ty-kate
Copy link
Member

$ opam repository set-url --strict default "git://github.com/GgnDpSngh/opam-repository.git#ef9a4b1448581b3de004c85ce9409eaacee2bdd0"
[default] Initialised
[ERROR] In /home/opam/.opam/repo/default/packages/elina/elina.1.1/opam:
        This file is for package 'elina.1.1' but has mismatching fields 'version:1.3.
[ERROR] Strict mode: aborting
[ERROR] Could not update repository "default": OpamStd.OpamSys.Exit(30)
$ echo $?
0

This should return a non-zero exit code and fail, but it succeeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Opam 2.2.0
  
Done
1 participant