-
Notifications
You must be signed in to change notification settings - Fork 358
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 root version: fix upgrade from a non global config change #5305
Conversation
0efc815
to
afbcb56
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're nearly there with this thorny thing! I have various notes to put back into the wiki on the root versions stuff.
src/format/opamFile.ml
Outdated
@@ -1760,25 +1760,44 @@ end | |||
module Repos_configSyntax = struct | |||
|
|||
let internal = "repos-config" | |||
let format_version = OpamVersion.of_string "2.0" | |||
let format_version = OpamVersion.of_string "2.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better to bump it straight to 2.2, wouldn't it? (I think the "gap" is less confusing than having a 2.1 version of the format which technically can't be read by opam 2.1's libraries!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember what we say about those versions : should they follow opam versions ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the intention was that we'd use opam versions when it was bumped, yes - so it just so happened that opam 2.1 uses opam 2.0's repo config format
Updated |
Used to retrieve information about remaining upgrades to do (repo or switch)
When root is bumped but only repo or switch is modified, upgraded files can be written without writing the root bump (on-the-fly global state upgrade).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! (sorry for the delay re-reviewing)
No description provided.