Skip to content

Commit f62863d

Browse files
committed
Fix MSRV job by requesting a compatible version of parking_lot.
1 parent 1425e40 commit f62863d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ jobs:
121121
import toml
122122
cargo_toml = toml.load("Cargo.toml")
123123
cargo_toml["dependencies"]["ndarray"] = "0.13.1"
124+
cargo_toml["dependencies"]["parking_lot"] = "0.11.2"
124125
cargo_toml["dependencies"]["num-complex"] = "0.2.4"
125126
cargo_toml["workspace"] = {}
126127
with open("Cargo.toml", "w") as f:
@@ -130,15 +131,17 @@ jobs:
130131
- name: Generate lockfile
131132
run: cargo generate-lockfile
132133
working-directory: examples/simple
133-
- name: Unify dependencies on ndarray to 0.13.1
134+
- name: Unify dependencies on ndarray to 0.13.1 and on parking_lot to 0.11.2
134135
run: |
135136
import toml
136137
import subprocess
137138
cargo_lock = toml.load("Cargo.lock")
138139
for pkg in cargo_lock["package"]:
140+
pkg_id = pkg["name"] + ":" + pkg["version"]
139141
if pkg["name"] == "ndarray" and pkg["version"] != "0.13.1":
140-
pkg_id = pkg["name"] + ":" + pkg["version"]
141142
subprocess.run(["cargo", "update", "--package", pkg_id, "--precise", "0.13.1"], check=True)
143+
if pkg["name"] == "parking_lot" and pkg["version"] != "0.11.2":
144+
subprocess.run(["cargo", "update", "--package", pkg_id, "--precise", "0.11.2"], check=True)
142145
working-directory: examples/simple
143146
shell: python
144147
- name: Test example

0 commit comments

Comments
 (0)