Skip to content

Commit

Permalink
fix: make dev failed when lockfile does not exist (#805)
Browse files Browse the repository at this point in the history
Co-authored-by: Zhang Fengping <zhangfengping@Zhangs-Laptop.local>
  • Loading branch information
fpzhang928 and Zhang Fengping authored Nov 20, 2024
1 parent f7686f3 commit c4acbb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions template/Makefile.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4acbb9

Please sign in to comment.