mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
"replace" directive support in PklProject #360
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.jsonis 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.