From c4acbb9b3de287d216a3a2930be73cb68d5db281 Mon Sep 17 00:00:00 2001 From: Jasmine Parker <76546656+fpzhang928@users.noreply.github.com> Date: Wed, 20 Nov 2024 16:18:39 +0800 Subject: [PATCH] fix: make dev failed when lockfile does not exist (#805) Co-authored-by: Zhang Fengping --- Makefile | 6 +++--- template/Makefile.jinja | 6 +++--- 2 files changed, 6 insertions(+), 6 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 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