Skip to content

fix(dockerize): do not write the entrypoint on --dry-run - #30

Merged
noirbizarre merged 1 commit into
mainfrom
fix/dry-run-entrypoint
Jul 31, 2026
Merged

noirbizarre merged 1 commit into
mainfrom
fix/dry-run-entrypoint

Conversation

@noirbizarre

Copy link
Copy Markdown
Owner

pdm dockerize --dry-run always failed with FileNotFoundError on dist/docker/entrypoint: the entrypoint was written unconditionally after synchronization, while neither synchronizer creates the target directory in dry-run mode.

The entrypoint script is now printed to stdout instead of being written, so --dry-run gives a complete preview (packages and entrypoint) without touching the filesystem. Covered by new command-level tests for both the pip and uv paths.

The entrypoint script was written unconditionally after synchronization,
so `pdm dockerize --dry-run` failed with FileNotFoundError because the
target directory is never created in dry-run mode.

The script is now generated and printed to stdout instead, leaving the
filesystem untouched.
@noirbizarre
noirbizarre merged commit a507b8f into main Jul 31, 2026
6 checks passed
@noirbizarre
noirbizarre deleted the fix/dry-run-entrypoint branch July 31, 2026 18:21
@codecov

codecov Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.06%. Comparing base (a4ddc95) to head (3a96f2a).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #30      +/-   ##
==========================================
+ Coverage   93.99%   94.06%   +0.06%     
==========================================
  Files           6        6              
  Lines         433      438       +5     
  Branches       60       61       +1     
==========================================
+ Hits          407      412       +5     
  Misses         22       22              
  Partials        4        4              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant