Skip to content

Added pkg module key factory and resource reader to project loading#1547

Open
netvl wants to merge 1 commit intoapple:mainfrom
netvl:allow-project-uris-in-pklproject
Open

Added pkg module key factory and resource reader to project loading#1547
netvl wants to merge 1 commit intoapple:mainfrom
netvl:allow-project-uris-in-pklproject

Conversation

@netvl
Copy link
Copy Markdown
Contributor

@netvl netvl commented Apr 22, 2026

This change allows PklProject files, usually loaded via the Project static methods, to have references to external packages via package:// URIs.

This is helpful for centralizing and sharing common package configuration via packages.

I don't think there is an infrastructure in tests to test package: URIs since they require HTTP calls, and this PR doesn't seem like a good place to add it, but if you think it would make sense to do it, I can try to come up with something.

This change allows `PklProject` files, usually loaded via the `Project` static methods, to have references to external packages via `package://` URIs.

This is helpful for centralizing and sharing common package configuration via packages.
@odenix
Copy link
Copy Markdown
Contributor

odenix commented Apr 22, 2026

I don't think there is an infrastructure in tests to test package: URIs since they require HTTP calls

In case it helps, pkl-commons-test has PackageServer.

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.

2 participants