From 5f3528664d996b88ee374d30bbe2f4e324b30f6d Mon Sep 17 00:00:00 2001 From: mitchmindtree Date: Thu, 8 Sep 2022 15:54:26 +0200 Subject: [PATCH] Add a CI check to ensure Cargo.lock file remains up-to-date (#597) * Add a CI check to ensure Cargo.lock file remains up-to-date This adds a new CI "cargo-verification" check to ensure the `Cargo.lock` file is valid for the current state of all manifests within the workspace. This avoids having `Cargo.lock` files changes leak into unrelated PRs, and allows tools like Nix to always have a valid lock file present at each published release to ensure reproducible builds. * Use default features, targets for lock file check --- .github/workflows/ci.yml | 2 ++ Cargo.lock | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d57d70afca0..de015d479ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -94,6 +94,8 @@ jobs: args: --all-targets --all-features - command: make args: build + - command: check + args: --locked --workspace - command: test args: --all-targets --all-features --workspace --exclude fuel-p2p - command: test diff --git a/Cargo.lock b/Cargo.lock index 1ebce38d3c3..671f0bb2845 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2130,7 +2130,6 @@ dependencies = [ "insta", "itertools", "lazy_static", - "prometheus", "rand 0.8.5", "rocksdb", "serde",