From 490859749e3a5c2e1135fc6e6a151abe62213e59 Mon Sep 17 00:00:00 2001 From: DeveloperC Date: Fri, 1 Mar 2024 14:16:41 +0000 Subject: [PATCH] build: cargo install --locked * https://doc.rust-lang.org/cargo/commands/cargo-install.html > By default, the Cargo.lock file that is included with the package will be ignored. This means that Cargo will recompute which versions of dependencies to use, possibly using newer versions that have been released since the package was published. The --locked flag can be used to force Cargo to use the packaged Cargo.lock file if it is available. This may be useful for ensuring reproducible builds, to use the exact same set of dependencies that were available when the package was published. It may also be useful if a newer version of a dependency is published that no longer builds on your system, or has other problems. The downside to using --locked is that you will not receive any fixes or updates to any dependency. Note that Cargo did not start publishing Cargo.lock files until version 1.37, which means packages published with prior versions will not have a Cargo.lock file available. --- Earthfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Earthfile b/Earthfile index 8220a69..fd51803 100644 --- a/Earthfile +++ b/Earthfile @@ -19,7 +19,7 @@ rust-base: check-clean-git-history: FROM +rust-base - RUN cargo install clean_git_history --version 0.1.2 + RUN cargo install clean_git_history --version 0.1.2 --locked DO +COPY_METADATA ARG from_reference="origin/HEAD" RUN ./ci/check-clean-git-history.sh --from-reference "${from_reference}" @@ -82,7 +82,7 @@ fix-formatting: check-conventional-commits-linting: FROM +rust-base - RUN cargo install conventional_commits_linter --version 0.12.3 + RUN cargo install conventional_commits_linter --version 0.12.3 --locked DO +COPY_METADATA ARG from_reference="origin/HEAD" RUN ./ci/check-conventional-commits-linting.sh --from-reference "${from_reference}"