Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
hotfix: snow dependency bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ozwaldorf committed Jan 31, 2023
1 parent 0b33fcc commit c0438a3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

# https://github.com/mcginty/snow/issues/146
- name: fix snow
run: cargo update -p curve25519-dalek@4.0.0-rc.0 --precise 4.0.0-pre.5

- run: cargo test --workspace --all-features
- run: cargo test --workspace --no-default-features

Expand Down Expand Up @@ -121,6 +125,10 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

# https://github.com/mcginty/snow/issues/146
- name: fix snow
run: cargo update -p curve25519-dalek@4.0.0-rc.0 --precise 4.0.0-pre.5

- run: cargo test --workspace --all-features
- run: cargo test --workspace --no-default-features

Expand Down Expand Up @@ -175,6 +183,10 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

# https://github.com/mcginty/snow/issues/146
- name: fix snow
run: cargo update -p curve25519-dalek@4.0.0-rc.0 --precise 4.0.0-pre.5

- run: cargo clippy --workspace --all-targets -- -D warnings
- run: cargo clippy --workspace --all-targets --no-default-features -- -D warnings
- run: cargo clippy --workspace --all-targets --all-features -- -D warnings
Expand Down Expand Up @@ -219,4 +231,8 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

# https://github.com/mcginty/snow/issues/146
- name: fix snow
run: cargo update -p curve25519-dalek@4.0.0-rc.0 --precise 4.0.0-pre.5

- run: cargo fmt --all -- --check
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
COPY . .
ENV RUST_BACKTRACE=1

# fix https://github.com/mcginty/snow/issues/146
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/ursa/target \
cargo update -p curve25519-dalek@4.0.0-rc.0 --precise 4.0.0-pre.5

RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/ursa/target \
cargo build --profile $PROFILE --bin ursa \
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
DOCKER_BUILDKIT=1
COMPOSE_DOCKER_CLI_BUILD=1

fix-deps:
cargo update -p curve25519-dalek@4.0.0-rc.0 --precise 4.0.0-pre.5

version:
cargo --version
rustc --version
Expand Down

0 comments on commit c0438a3

Please sign in to comment.