Skip to content

Commit c4acbb9

Browse files
fpzhang928Zhang Fengping
andauthored
fix: make dev failed when lockfile does not exist (#805)
Co-authored-by: Zhang Fengping <zhangfengping@Zhangs-Laptop.local>
1 parent f7686f3 commit c4acbb9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ deepclean: clean
4242

4343
# Install the package in editable mode.
4444
install:
45-
pdm sync --prod
45+
pdm install --prod
4646

4747
# Install the package in editable mode with specific optional dependencies.
4848
dev-%: install
49-
pdm sync --lockfile pdm.dev.lock --no-default --dev --group $*
49+
pdm install --lockfile pdm.dev.lock --no-default --dev --group $*
5050

5151
# Prepare the development environment.
5252
# Install the package in editable mode with all optional dependencies and pre-commit hook.
5353
dev: install
54-
pdm sync --lockfile pdm.dev.lock
54+
pdm install --lockfile pdm.dev.lock
5555
if [ "$(CI)" != "true" ] && command -v pre-commit > /dev/null 2>&1; then pre-commit install; fi
5656

5757
# Install standalone tools

template/Makefile.jinja

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ deepclean: clean
4444

4545
# Install the package in editable mode.
4646
install:
47-
pdm sync --prod
47+
pdm install --prod
4848

4949
# Install the package in editable mode with specific optional dependencies.
5050
dev-%: install
51-
pdm sync --lockfile pdm.dev.lock --no-default --dev --group $*
51+
pdm install --lockfile pdm.dev.lock --no-default --dev --group $*
5252

5353
# Prepare the development environment.
5454
# Install the package in editable mode with all optional dependencies and pre-commit hook.
5555
dev: install
56-
pdm sync --lockfile pdm.dev.lock
56+
pdm install --lockfile pdm.dev.lock
5757
if [ "$(CI)" != "true" ] && command -v pre-commit > /dev/null 2>&1; then pre-commit install; fi
5858

5959
# Install standalone tools

0 commit comments

Comments
 (0)