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

Bump version to 2.3.0~alpha~dev #6045

Merged
merged 4 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dnl The line below must be formatted AC_INIT([opam],[VERSION]) with no extra spaces
AC_INIT([opam],[2.2.0~rc1])
AC_INIT([opam],[2.3.0~alpha~dev])
AC_COPYRIGHT(Copyright 2012-2019 OcamlPro SAS)

AC_CONFIG_MACRO_DIR([m4])
Expand Down
4 changes: 4 additions & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ moved, etc.), please update the _API updates_ part (it helps opam library
users)

## Version
* Bump version to 2.3.0~alpha~dev [#6045 @rjbou]

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

## Plugins

Expand Down Expand Up @@ -99,6 +101,8 @@ users)

## Reftests
### Tests
* cli versioning: untie output from current major version [#6045 @rjbou]
* Set `opam-version` to 2.2 for some conflict message tests based on opam repository to stabilise their output [#6045 @rjbou]

### Engine

Expand Down
2 changes: 1 addition & 1 deletion opam-client.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "2.2.0~rc1"
version: "2.3.0~alpha~dev"
synopsis: "Client library for opam 2.2"
description: """
Actions on the opam root, switches, installations, and front-end.
Expand Down
2 changes: 1 addition & 1 deletion opam-core.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "2.2.0~rc1"
version: "2.3.0~alpha~dev"
synopsis: "Core library for opam 2.2"
description: """
Small standard library extensions, and generic system interaction modules used by opam.
Expand Down
2 changes: 1 addition & 1 deletion opam-devel.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "2.2.0~rc1"
version: "2.3.0~alpha~dev"
synopsis: "Bootstrapped development binary for opam 2.2"
description: """
This package compiles (bootstraps) opam. For consistency and safety of the installation, the binaries are not installed into the PATH, but into lib/opam-devel, from where the user can manually install them system-wide.
Expand Down
2 changes: 1 addition & 1 deletion opam-format.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "2.2.0~rc1"
version: "2.3.0~alpha~dev"
synopsis: "Format library for opam 2.2"
description: """
Definition of opam datastructures and its file interface.
Expand Down
2 changes: 1 addition & 1 deletion opam-installer.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "2.2.0~rc1"
version: "2.3.0~alpha~dev"
synopsis: "Installation of files to a prefix, following opam conventions"
description: """
opam-installer is a small tool that can read *.install files, as defined by opam [1], and execute them to install or remove package files without going through opam.
Expand Down
2 changes: 1 addition & 1 deletion opam-repository.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "2.2.0~rc1"
version: "2.3.0~alpha~dev"
synopsis: "Repository library for opam 2.2"
description: """
This library includes repository and remote sources handling, including curl/wget, rsync, git, mercurial, darcs backends.
Expand Down
2 changes: 1 addition & 1 deletion opam-solver.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "2.2.0~rc1"
version: "2.3.0~alpha~dev"
synopsis: "Solver library for opam 2.2"
description: """
Solver and Cudf interaction. This library is based on the Cudf and Dose libraries, and handles calls to the external solver from opam.
Expand Down
2 changes: 1 addition & 1 deletion opam-state.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "2.2.0~rc1"
version: "2.3.0~alpha~dev"
synopsis: "State library for opam 2.2"
description: """
Handling of the ~/.opam hierarchy, repository and switch states.
Expand Down
2 changes: 1 addition & 1 deletion opam.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "2.2.0~rc1"
version: "2.3.0~alpha~dev"
synopsis: "Meta-package for Dune"
maintainer: "opam-devel@lists.ocaml.org"
authors: [
Expand Down
2 changes: 2 additions & 0 deletions src/client/opamArg.mli
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ type validity
val cli2_0: OpamCLIVersion.t
val cli2_1: OpamCLIVersion.t
val cli2_2: OpamCLIVersion.t
val cli2_3: OpamCLIVersion.t

(* [cli_from ?platform ?experimental since] validity flag since [since], and no
removal version. If [experimental] is true, it is marked as is (warning and
documentation update). If [?platform] is not its default [`all], flag is
Expand Down
1 change: 1 addition & 0 deletions src/client/opamArgTools.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ open OpamCLIVersion.Op
let cli2_0 = OpamCLIVersion.of_string "2.0"
let cli2_1 = OpamCLIVersion.of_string "2.1"
let cli2_2 = OpamCLIVersion.of_string "2.2"
let cli2_3 = OpamCLIVersion.of_string "2.2"

type subplatform = [ `windows | `unix ]
type platform = [ `all | subplatform ]
Expand Down
1 change: 1 addition & 0 deletions src/client/opamArgTools.mli
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ val cli_original: validity
val cli2_0: OpamCLIVersion.t
val cli2_1: OpamCLIVersion.t
val cli2_2: OpamCLIVersion.t
val cli2_3: OpamCLIVersion.t

val mk_flag:
cli:OpamCLIVersion.Sourced.t -> validity -> section:string -> string list ->
Expand Down
15 changes: 9 additions & 6 deletions tests/reftests/cli-versioning.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
N0REP0
### <opam-version.sh>
opam --version | cut -f -2 -d '.'
### sh opam-version.sh >$ OPAMMAJORVERSION
### <pkg:baz.1>
opam-version: "2.0"
flags: compiler
Expand All @@ -7,8 +10,8 @@ opam-version: "2.0"
flags: compiler
### opam option depext=false
Set to 'false' the field depext in global configuration
### opam switch install cli-versioning --empty
opam: install was removed in version 2.1 of the opam CLI, but version 2.2 has been requested. Use create instead or set OPAMCLI environment variable to 2.0.
### opam switch install cli-versioning --empty | "${OPAMMAJORVERSION}" -> "CURRENTMAJOR"
opam: install was removed in version 2.1 of the opam CLI, but version CURRENTMAJOR has been requested. Use create instead or set OPAMCLI environment variable to 2.0.
# Return code 2 #
### OPAMCLI=2.0 opam switch install cli-versioning --empty
[WARNING] OPAMNODEPEXTS was ignored because CLI 2.0 was requested and it was introduced in 2.1.
Expand Down Expand Up @@ -62,8 +65,8 @@ The following actions would be performed:
The following actions would be performed:
=== install 1 package
- install baz 2
### opam install baz.2 --unlock-base
opam: --unlock-base was removed in version 2.1 of the opam CLI, but version 2.2 has been requested. Use --update-invariant instead or set OPAMCLI environment variable to 2.0.
### opam install baz.2 --unlock-base | "${OPAMMAJORVERSION}" -> "CURRENTMAJOR"
opam: --unlock-base was removed in version 2.1 of the opam CLI, but version CURRENTMAJOR has been requested. Use --update-invariant instead or set OPAMCLI environment variable to 2.0.
# Return code 2 #
### # opam option uses mk_command_ret
### opam option foo
Expand Down Expand Up @@ -134,8 +137,8 @@ The following actions will be performed:
-> removed env-2-1.1
Done.
### # Environement variables cli versioning
### OPAMBUILDDOC=1 opam var share
[WARNING] OPAMBUILDDOC was ignored because CLI 2.2 was requested and it was removed in 2.1, set OPAMCLI environment variable to 2.0.
### OPAMBUILDDOC=1 opam var share | "${OPAMMAJORVERSION}" -> "CURRENTMAJOR"
[WARNING] OPAMBUILDDOC was ignored because CLI CURRENTMAJOR was requested and it was removed in 2.1, set OPAMCLI environment variable to 2.0.
${BASEDIR}/OPAM/cli-versioning/share
### OPAMCLI=2.0 OPAMBUILDDOC=1 opam config var share
[WARNING] OPAMNODEPEXTS was ignored because CLI 2.0 was requested and it was introduced in 2.1.
Expand Down
2 changes: 2 additions & 0 deletions tests/reftests/empty-conflicts-001.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
297366c
### OPAMYES=1 OPAMSTRICT=0
### OPAMVAR_arch=x86_64 OPAMVAR_os=linux OPAMVAR_os_family=arch OPAMVAR_os_distribution=archarm
### # We need to set this version to keep the test as is
### OPAMVAR_opam_version=2.2.0
### opam switch create test ocaml-base-compiler.4.07.1 --fake

<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
Expand Down
2 changes: 2 additions & 0 deletions tests/reftests/empty-conflicts-002.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
11ea1cb
### OPAMYES=1 OPAMSTRICT=0
### OPAMVAR_arch=x86_64 OPAMVAR_os=linux OPAMVAR_os_family=arch OPAMVAR_os_distribution=archarm
### # We need to set this version to keep the test as is
### OPAMVAR_opam_version=2.2.0
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't know if we should update the test (and possibly alter it?) or freeze it like that...

Copy link
Member

Choose a reason for hiding this comment

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

I agree it looks a bit weird, but I think it's OK - the only thing which might be worth double-checking is whether the bounds actually matter i.e. if something actually needs fixing in opam-repository? But this could be tracked in a follow-up issue/note, rather than blocking the version bump.

### opam switch create test ocaml-base-compiler.4.14.0 --fake

<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
Expand Down
2 changes: 2 additions & 0 deletions tests/reftests/empty-conflicts-003.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
3235916
### OPAMYES=1 OPAMSTRICT=0
### OPAMVAR_arch=arm64 OPAMVAR_os=linux OPAMVAR_os_family=arch OPAMVAR_os_distribution=archarm
### # We need to set this version to keep the test as is
### OPAMVAR_opam_version=2.2.0
### opam switch create test ocaml-base-compiler.4.14.0 --fake

<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
Expand Down
2 changes: 2 additions & 0 deletions tests/reftests/list-coinstallable.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
7371c1d9
### : Test for #5399 (opam list --recursive --coinstallable-with <pkg>.<version> returning all versions of <pkg>)
### OPAMVAR_arch=arm64 OPAMVAR_os=linux OPAMVAR_os_family=arch OPAMVAR_os_distribution=archarm
### # We need to set this version to keep the test as is
### OPAMVAR_opam_version=2.2.0
### opam switch create 4.12.0 --fake

<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
Expand Down
2 changes: 2 additions & 0 deletions tests/reftests/unhelpful-conflicts-001.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
c1ba97dafe95c865d37ad4d88f6e57c9ffbe7f0a
### OPAMYES=1 OPAMSTRICT=0
### OPAMVAR_arch=arm64 OPAMVAR_os=macos OPAMVAR_os_family=homebrew OPAMVAR_os_distribution=homebrew
### # We need to set this version to keep the test as is
### OPAMVAR_opam_version=2.2.0
### opam switch create test ocaml-base-compiler.5.0.0~alpha0 --fake

<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
Expand Down
Loading