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 repo add" fails if one of the packages in the repository has an unsupported version #5631

Closed
kit-ty-kate opened this issue Aug 14, 2023 · 0 comments · Fixed by #5665
Closed

Comments

@kit-ty-kate
Copy link
Member

$ tree
.
├── packages
│   └── a
│       └── a.1
│           └── opam
└── repo

4 directories, 2 files
$ cat packages/a/a.1/opam
opam-version: "3.0"
$ cat repo
opam-version: "2.0"
$ opam repo add test .
[test] Initialised
[ERROR] Could not update repository "test": In
        $OPAMROOT/.opam/repo/test/packages/a/a.1/opam:
        unsupported or missing file format version; should be 2.0 or older
[ERROR] Initial repository fetch failed

The expected behaviour would be do silently mark the package as unavailable and only fail when the repo file’s version is unsupported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants