From 6b89301f03ad0a9e4a0d15e01cfc048e395f4dbf Mon Sep 17 00:00:00 2001 From: Jens Troeger Date: Wed, 22 Apr 2026 16:28:11 +1000 Subject: [PATCH] =?UTF-8?q?fix:=20don=E2=80=99t=20print=20warning=20about?= =?UTF-8?q?=20upgrading=20the=20venv=20if=20the=20venv=20wasn=E2=80=99t=20?= =?UTF-8?q?upgraded=20yet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0e14e433..d6461f2c 100644 --- a/Makefile +++ b/Makefile @@ -40,9 +40,11 @@ endif # If the project configuration file has been updated (package deps or # otherwise) then warn the user and suggest resolving the conflict. -ifeq ($(shell test pyproject.toml -nt .venv/upgraded-on; echo $$?),0) - $(warning pyproject.toml was updated, consider `make upgrade` if your packages have changed) - $(warning If this is not correct then run `make upgrade-quiet`) +ifneq ($(wildcard .venv/upgraded-on),) + ifeq ($(shell test pyproject.toml -nt .venv/upgraded-on; echo $$?),0) + $(warning pyproject.toml was updated, consider `make upgrade` if your packages have changed) + $(warning If this is not correct then run `make upgrade-quiet`) + endif endif # The SOURCE_DATE_EPOCH environment variable allows the `flit` tool to