Skip to content

Commit

Permalink
Fix the locked file (OCamlPro#965)
Browse files Browse the repository at this point in the history
* Fix the locked file

We should never pin dependencies in `opam` files or their templates. This commit
removes all the pins in `alt-ergo-lib.opam` and `alt-ergo-lib.opam.template`
and update the locked file.

* Test with opam 2.2
  • Loading branch information
Halbaroth authored Nov 22, 2023
1 parent d2af665 commit 459dc3a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 33 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
allow-prelease-opam: true
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: true

Expand All @@ -66,6 +67,7 @@ jobs:
- name: Use OCaml ${{ env.OCAML_DEFAULT_VERSION }}
uses: ocaml/setup-ocaml@v2
with:
allow-prelease-opam: true
ocaml-compiler: ${{ env.OCAML_DEFAULT_VERSION }}
dune-cache: true

Expand Down Expand Up @@ -95,6 +97,7 @@ jobs:
- name: Use OCaml ${{ env.OCAML_DEFAULT_VERSION }}
uses: ocaml/setup-ocaml@v2
with:
allow-prelease-opam: true
ocaml-compiler: ${{ env.OCAML_DEFAULT_VERSION }}
dune-cache: true

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
- name: Use OCaml ${{ env.OCAML_DEFAULT_VERSION }}
uses: ocaml/setup-ocaml@v2
with:
allow-prelease-opam: true
ocaml-compiler: ${{ env.OCAML_DEFAULT_VERSION }}

# Install dependencies
Expand Down
15 changes: 0 additions & 15 deletions alt-ergo-lib.opam
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,3 @@ license: [
"LicenseRef-OCamlpro-Non-Commercial"
"Apache-2.0"
]

pin-depends: [
[
"dolmen.dev"
"git+https://github.com/Gbury/dolmen.git#b14eb8a2400c3dd2c34cded212c2135bbce1a57c"
]
[
"dolmen_loop.dev"
"git+https://github.com/Gbury/dolmen.git#b14eb8a2400c3dd2c34cded212c2135bbce1a57c"
]
[
"dolmen_type.dev"
"git+https://github.com/Gbury/dolmen.git#b14eb8a2400c3dd2c34cded212c2135bbce1a57c"
]
]
6 changes: 3 additions & 3 deletions alt-ergo-lib.opam.locked
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ conflicts: [
pin-depends: [
[
"dolmen.dev"
"git+https://github.com/Gbury/dolmen.git#baaf1f92ccd473294679dd9025c3ae9a441a82fa"
"git+https://github.com/Gbury/dolmen.git#b14eb8a2400c3dd2c34cded212c2135bbce1a57c"
]
[
"dolmen_loop.dev"
"git+https://github.com/Gbury/dolmen.git#baaf1f92ccd473294679dd9025c3ae9a441a82fa"
"git+https://github.com/Gbury/dolmen.git#b14eb8a2400c3dd2c34cded212c2135bbce1a57c"
]
[
"dolmen_type.dev"
"git+https://github.com/Gbury/dolmen.git#baaf1f92ccd473294679dd9025c3ae9a441a82fa"
"git+https://github.com/Gbury/dolmen.git#b14eb8a2400c3dd2c34cded212c2135bbce1a57c"
]
[
"js_of_ocaml.5.4.0"
Expand Down
15 changes: 0 additions & 15 deletions alt-ergo-lib.opam.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,3 @@ license: [
"LicenseRef-OCamlpro-Non-Commercial"
"Apache-2.0"
]

pin-depends: [
[
"dolmen.dev"
"git+https://github.com/Gbury/dolmen.git#b14eb8a2400c3dd2c34cded212c2135bbce1a57c"
]
[
"dolmen_loop.dev"
"git+https://github.com/Gbury/dolmen.git#b14eb8a2400c3dd2c34cded212c2135bbce1a57c"
]
[
"dolmen_type.dev"
"git+https://github.com/Gbury/dolmen.git#b14eb8a2400c3dd2c34cded212c2135bbce1a57c"
]
]

0 comments on commit 459dc3a

Please sign in to comment.