apple / apple/pkl

"replace" directive support in PklProject

Open
#1,302 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
11.5k
Forks
402
Avg merge
1d 15h
Merged PRs (30d)
20

Description

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.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the PklProject manifest is read and how PklProject.deps.json is generated. Define the replacement behavior for transitive dependencies, including the error for creating packages when replace directives are present; done means dependency output reflects swaps and package creation rejects them.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.