Skip to content

Commit 9664a7f

Browse files
ci: pin getrandom crate as newer version requires edition2024
This should be done in a better way, but for now this will allow us to merge this. Probably we should commit a Cargo.lock here. Signed-off-by: Tiago Castro <tiagolobocastro@gmail.com>
1 parent 1111cd8 commit 9664a7f

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/pr-code-lint.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: Code Linter
22
on:
33
merge_group:
44
pull_request:
5-
types: ['opened', 'edited', 'reopened', 'synchronize']
5+
types: [ 'opened', 'edited', 'reopened', 'synchronize' ]
66
jobs:
77
rust-lint:
88
strategy:
99
matrix:
10-
os: [github-arm64-2c-8gb, ubuntu-latest]
10+
os: [ github-arm64-2c-8gb, ubuntu-latest ]
1111
runs-on: ${{ matrix.os }}
1212
steps:
1313
- uses: actions/checkout@v4
@@ -18,6 +18,8 @@ jobs:
1818
nix_path: nixpkgs=channel:nixos-22.11
1919
- name: nix-shell
2020
run: nix-shell --pure --run exit
21+
- name: Patch getrandom crate
22+
run: sed -i 's/uuid = { version = "1\.11", features = \["v4"\] }/uuid = { version = "=1.11", features = ["v4"] }/' Cargo.toml
2123
- name: cargo-clippy
2224
run: nix-shell --pure --run ./scripts/rust-linter.sh
2325
- name: cargo-fmt

Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,8 @@ parking_lot = "0.12.3"
1919
serde_json = "1.0.132"
2020
snafu = "0.8.5"
2121
tracing = "0.1.40"
22+
uuid = { version = "1.11", features = ["v4"] }
2223

2324
[dependencies.serde]
2425
features = ["derive"]
2526
version = "1.0.214"
26-
27-
[dependencies.uuid]
28-
features = ["v4"]
29-
version = "1.11"

0 commit comments

Comments
 (0)