Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make dev failed when lockfile does not exist #805

Merged
merged 2 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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