Skip to content

Commit 080672b

Browse files
kit-ty-katerjbou
andauthored
Bump opam-root-version to 2.2 (#5980)
* reftest: fix and harmonise opam root version test * update release instructions * Bump opam-root-version to 2.2 --------- Co-authored-by: Raja Boujbel <raja.boujbel@ocamlpro.com>
1 parent cfa7568 commit 080672b

File tree

5 files changed

+411
-40
lines changed

5 files changed

+411
-40
lines changed

master_changes.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ users)
1212

1313
## Version
1414
* Bump version to 2.3.0~alpha~dev [#6045 @rjbou]
15+
* Bump opam-root-version to 2.2 [#5980 @kit-ty-kate]
1516

1617
## Global CLI
1718
* Add cli version 2.3 [#6045 @rjbou]

release/readme.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Steps to follow for each release
22

33
## Finalise opam code for release
4-
* update version in opam files, configure.ac
4+
* update version in all the opam files and in configure.ac
55
* run `make configure` to regenerate `./configure` [checked by github actions]
66
* update copyright headers
7+
* if you're releasing the first final release of a new branch (e.g. 2.2.0): make sure `root_version` in OpamFile.ml is set to the final release number (e.g. for 2.2.0, root_version should be 2.2). Make sure that opamFormatUpgrade.ml also contains an upgrade function from the previous version (that function will most likely be empty)
78
* run `make tests`, `opam-rt` [checked by github actions]
89
* update the CHANGE file: take `master_changes.md` content to fill it
910

src/format/opamFile.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,7 @@ module ConfigSyntax = struct
13951395
let atomic = false
13961396
let format_version = OpamVersion.of_string "2.1"
13971397
let file_format_version = OpamVersion.of_string "2.0"
1398-
let root_version = OpamVersion.of_string "2.2~beta"
1398+
let root_version = OpamVersion.of_string "2.2"
13991399

14001400
let default_old_root_version = OpamVersion.of_string "2.1~~previous"
14011401

src/state/opamFormatUpgrade.ml

+5
Original file line numberDiff line numberDiff line change
@@ -1143,6 +1143,10 @@ let from_2_2_alpha_to_2_2_beta ~on_the_fly _ conf =
11431143
| None -> info_jobs_changed ~prev_jobs:1);
11441144
OpamFile.Config.with_jobs_opt None conf, gtc_none
11451145

1146+
let v2_2 = OpamVersion.of_string "2.2"
1147+
1148+
let from_2_2_beta_to_2_2 ~on_the_fly:_ _ conf = conf, gtc_none
1149+
11461150
(* To add an upgrade layer
11471151
* If it is a light upgrade, returns as second element if the repo or switch
11481152
need an light upgrade with `gtc_*` values.
@@ -1239,6 +1243,7 @@ let as_necessary ?reinit requested_lock global_lock root config =
12391243
]) @ [
12401244
v2_2_alpha, from_2_1_to_2_2_alpha;
12411245
v2_2_beta, from_2_2_alpha_to_2_2_beta;
1246+
v2_2, from_2_2_beta_to_2_2;
12421247
]
12431248
|> List.filter (fun (v,_) ->
12441249
OpamVersion.compare root_version v < 0)

0 commit comments

Comments
 (0)