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

Introduce opam-root-version #4636

Closed
dra27 opened this issue Apr 16, 2021 · 0 comments · Fixed by #4638 or #4742
Closed

Introduce opam-root-version #4636

dra27 opened this issue Apr 16, 2021 · 0 comments · Fixed by #4638 or #4742
Assignees
Milestone

Comments

@dra27
Copy link
Member

dra27 commented Apr 16, 2021

Discussed on 1 Apr, introduce opam-root-version for the root and switch config files which is checked for taking out write locks. opam-version is checked for taking out read locks. So after root upgrade, $OPAMROOT/config would contain:

opam-version: "2.0"
opam-root-version: "2.1"

opam-state 2.0.x should be updated to internally recognise opam-root-version (i.e. no change in API in OpamFile) and ignore fields it doesn't recognise. The changes we've made for 2.1 mean that it should "just work" to have readable roots to 2.0.

As always, a given version of opam would never attempt to read a file with opam-version greater than itself.

@dra27 dra27 added this to the 2.0.9 milestone Apr 16, 2021
@dra27 dra27 mentioned this issue May 5, 2021
2 tasks
@dra27 dra27 linked a pull request Jul 26, 2021 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
2 participants