ContextWe have the following polyrepo setup:
amends "pkl:Project"
package {
name = "dsl"
baseUri = "package://pkg.pkl-lang.org/github.com/org/\(name)"
version = "1.0.0-SNAPSHOT"
packageZipUrl =
"https://github.com/org/\(name)/releases/download/\(name)@\(version)/\(name)@\(version).zip"
}
amends "pkl:Project"
dependencies {
["dsl"] = import("package://pkg.pkl-lang.org/github.com/org/dsl@1.0.0-SNAPSHOT")
}QuestionWhat is the recommended workflow for iterating on Why common options feel non-ideal in polyrepo setupsWhile Pkl's built-in options (like relative project imports) work great for monorepo setups, they become insufficient for local development in a polyrepo setup:
|
Replies: 2 comments 1 reply
|
Hi there! The closest you get to Another approach is influencing a dependency itself using a similar technique to swap in a local import without having to directly edit PklProject directly: This will require a |
|
Thanks for the quick response! I figured we could manually (via a build script) copy the built package directly into the cache dir, but are there any plans for supporting this natively (e.g. via cli)? |
Hi there!
The closest you get to
mvn installwith Pkl is writing the built package zip directly to Pkl's package cache (currently~/.pkl/cacheby default). You can customize the path to this cache in a PklProject file, and you can even do so conditionally, e.g. based on an environment variable (read?("env:BLAH")).Another approach is influencing a dependency itself using a similar technique to swap in a local import without having to directly edit PklProject directly:
Th…