Skip to content

Commit 6475be9

Browse files
committed
Fix Docker image
The compliance test started failing in CI, while it continued to work locally. There were two related issues. 1. The Cargo.lock file was not tracked by git, so CI would pull in the latest packages. One of these packages breaks the test. This change adds a Cargo.lock file with a set of working dependencies. 2. The Dockerfile uses cargo install rather than cargo build, which always ignores a Cargo.lock file. Adding the --locked argument causes it to use the Cargo.lock file.
1 parent 51e31e7 commit 6475be9

File tree

4 files changed

+2627
-8
lines changed

4 files changed

+2627
-8
lines changed

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
# will have compiled files and executables
33
/target/
44

5-
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
6-
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
7-
Cargo.lock
8-
95
# These are backup files generated by rustfmt
106
**/*.rs.bk
117

@@ -19,4 +15,4 @@ Cargo.lock
1915
/target
2016

2117
# Dev TLS certs
22-
.certs/
18+
.certs/

0 commit comments

Comments
 (0)