Skip to content

Commit d967648

Browse files
authored
fix: don’t print warning about upgrading the venv if the venv wasn’t upgraded yet (#1150)
1 parent 278f925 commit d967648

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ endif
4343

4444
# If the project configuration file has been updated (package deps or
4545
# otherwise) then warn the user and suggest resolving the conflict.
46-
ifeq ($(shell test pyproject.toml -nt .venv/upgraded-on; echo $$?),0)
47-
$(warning pyproject.toml was updated, consider `make upgrade` if your packages have changed)
48-
$(warning If this is not correct then run `make upgrade-quiet`)
46+
ifneq ($(wildcard .venv/upgraded-on),)
47+
ifeq ($(shell test pyproject.toml -nt .venv/upgraded-on; echo $$?),0)
48+
$(warning pyproject.toml was updated, consider `make upgrade` if your packages have changed)
49+
$(warning If this is not correct then run `make upgrade-quiet`)
50+
endif
4951
endif
5052

5153
# The SOURCE_DATE_EPOCH environment variable allows the `flit` tool to

0 commit comments

Comments
 (0)