"replace" directive support in PklProject #360

Open
opened 2025-12-30 01:23:50 +01:00 by adam · 0 comments
Owner

Originally created by @bioball on GitHub (Nov 5, 2025).

Goal: allow swapping transitive dependencies altogether (beyond just a version bump).

The PklProject manifest should have some replace directive that allows users to swap one package with another package.
This will then influence how PklProject.deps.json is generated.

Note: it should be an error to create packages when there are replace directives present, because packages shouldn't be allowed to control replacements of downstream projects.

Originally created by @bioball on GitHub (Nov 5, 2025). Goal: allow swapping transitive dependencies altogether (beyond just a version bump). The PklProject manifest should have some replace directive that allows users to swap one package with another package. This will then influence how `PklProject.deps.json` is generated. Note: it should be an error to create packages when there are replace directives present, because packages shouldn't be allowed to control replacements of downstream projects.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#360