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

Mark all non-latest opam-* pre-releases as deprecated #27228

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kit-ty-kate
Copy link
Member

As asked in ocaml/opam#6348
Although i'm not sure adding flags: deprecated is the best way to do this but we can talk about it later

@kit-ty-kate kit-ty-kate force-pushed the opam-deprecate-pre-releases branch from 76a402a to ec426d8 Compare January 7, 2025 21:27
@kit-ty-kate kit-ty-kate changed the title Mark all opam-* pre-releases as deprecated Mark all non-latest opam-* pre-releases as deprecated Jan 7, 2025
@@ -46,5 +46,4 @@ url {
"sha512=b7899244ab620213f2997409c9d8ac63e1a7ba99ff36abdd0acf41ae545ca7e0534e5e2f6c01a9700c10abf2df4f07944cc64fb5dd315a566f6c5b6b19464729"
]
}
available: opam-version >= "2.1.0"
flags: avoid-version
flags: deprecated
Copy link
Member

Choose a reason for hiding this comment

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

Won't this break opam 2.1 users if we remove the opam-version constraint as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

unknown flags are ignored so on opam 2.0 and 2.1 these packages will just not have any special behaviour.
In practice it shouldn't matter anymore as more recent versions are available. It was critical to have it at the time of release because it would've been the latest version and be picked up automatically by the solver, but this is not the case anymore

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

Successfully merging this pull request may close these issues.

2 participants