From 16975df5f5464d7a3cbbf26ed8812fbcc83ec5c2 Mon Sep 17 00:00:00 2001 From: Zhang Fengping Date: Wed, 20 Nov 2024 12:33:25 +0800 Subject: [PATCH 1/2] fix: make dev failed. report error lockfile does not exist --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0427d2af..0275d25c 100644 --- a/Makefile +++ b/Makefile @@ -42,16 +42,16 @@ deepclean: clean # Install the package in editable mode. install: - pdm sync --prod + pdm install --prod # Install the package in editable mode with specific optional dependencies. dev-%: install - pdm sync --lockfile pdm.dev.lock --no-default --dev --group $* + pdm install --lockfile pdm.dev.lock --no-default --dev --group $* # Prepare the development environment. # Install the package in editable mode with all optional dependencies and pre-commit hook. dev: install - pdm sync --lockfile pdm.dev.lock + pdm install --lockfile pdm.dev.lock if [ "$(CI)" != "true" ] && command -v pre-commit > /dev/null 2>&1; then pre-commit install; fi # Install standalone tools From 60ed36494ce436859952fa21e72edfac17b6dc01 Mon Sep 17 00:00:00 2001 From: Zhang Fengping Date: Wed, 20 Nov 2024 14:45:08 +0800 Subject: [PATCH 2/2] fix: makefile jinja --- template/Makefile.jinja | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/template/Makefile.jinja b/template/Makefile.jinja index 648c7228..0ec68b1b 100644 --- a/template/Makefile.jinja +++ b/template/Makefile.jinja @@ -44,16 +44,16 @@ deepclean: clean # Install the package in editable mode. install: - pdm sync --prod + pdm install --prod # Install the package in editable mode with specific optional dependencies. dev-%: install - pdm sync --lockfile pdm.dev.lock --no-default --dev --group $* + pdm install --lockfile pdm.dev.lock --no-default --dev --group $* # Prepare the development environment. # Install the package in editable mode with all optional dependencies and pre-commit hook. dev: install - pdm sync --lockfile pdm.dev.lock + pdm install --lockfile pdm.dev.lock if [ "$(CI)" != "true" ] && command -v pre-commit > /dev/null 2>&1; then pre-commit install; fi # Install standalone tools