From 06c0f3345ba835f64f803b6b8aa6cf10b63819b6 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 28 Oct 2022 13:45:10 -0700 Subject: Makefile: require Cargo.locked up to date for some deps --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index dee5f5a..2bfb764 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,8 @@ help: ## Print info about all commands @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[01;32m%-20s\033[0m %s\n", $$1, $$2}' .PHONY: test -test: build ## Run all tests - cargo test +test: build ## Run all tests (requires Cargo.lock up to date) + cargo test --locked .PHONY: lint lint: ## Run syntax/style checks @@ -22,8 +22,8 @@ build: ## Build cargo build .PHONY: build-release -build-release: ## Build for release - cargo build --release +build-release: ## Build for release (requires Cargo.lock up to date) + cargo build --release --locked .PHONY: completions completions: build ## generate shell completions -- cgit v1.2.3