Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Silently mark packages requiring an unsupported version of opam as unavailable #5665

Merged
merged 2 commits into from
Sep 18, 2024

Conversation

kit-ty-kate
Copy link
Member

@kit-ty-kate kit-ty-kate commented Sep 12, 2023

Fixes #5631

This makes it possible to have a smoother upgrade path for the opam repository when opam adds a new syntax for example.

In the future it would be nice to have a specific error message to tell the user why this package is not available, but I feel like we can do this later (TODO: open a ticket for it if this is merged first)

Copy link
Member

@dra27 dra27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this PR is an excellent idea - it concludes groundwork I laid in ocaml/opam-file-format#44 in opam 2.1.

@rjbou
Copy link
Collaborator

rjbou commented May 3, 2024

Updated the PR

@kit-ty-kate kit-ty-kate added this to the 2.3.0~alpha milestone Jul 2, 2024
@kit-ty-kate kit-ty-kate force-pushed the repo-upgrade-path branch 2 times, most recently from 6fe9a90 to f34f3b7 Compare August 8, 2024 14:01
@kit-ty-kate kit-ty-kate requested a review from rjbou August 8, 2024 14:01
@kit-ty-kate
Copy link
Member Author

rebased

@rjbou rjbou force-pushed the repo-upgrade-path branch from f34f3b7 to 62d8e8e Compare August 13, 2024 16:27
@rjbou rjbou removed the request for review from AltGr August 13, 2024 17:32
@kit-ty-kate kit-ty-kate requested a review from rjbou August 13, 2024 17:59
@rjbou rjbou added the PR: QUEUED Pending pull request, waiting for other work to be merged or closed label Sep 17, 2024
@rjbou
Copy link
Collaborator

rjbou commented Sep 17, 2024

Once rebased on top of 6199, good to go!

@kit-ty-kate kit-ty-kate removed the PR: QUEUED Pending pull request, waiting for other work to be merged or closed label Sep 18, 2024
…sitories containing opam files with an unsupported version
Copy link
Member

@dra27 dra27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kit-ty-kate kit-ty-kate merged commit 6f0cb44 into ocaml:master Sep 18, 2024
29 checks passed
@kit-ty-kate kit-ty-kate deleted the repo-upgrade-path branch September 18, 2024 12:43
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"opam repo add" fails if one of the packages in the repository has an unsupported version
3 participants