mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 23:23:37 +01:00
Gradle Plugin Fails on Windows #194
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 @jamesward on GitHub (Aug 1, 2024).
With a few projects which use the Pkl Gradle plugin that work on Linux, they fail on Windows with:
If I modify the
pklGradle config to be:(overriding the
allowedModulesto be more permissive) I get:So this looks like some weirdness with URIs and the Windows
C:stuff.@bioball commented on GitHub (Aug 1, 2024):
This was fixed in https://github.com/apple/pkl/pull/403.
For now, the workaround is to give Pkl a URI. For example:
@jamesward commented on GitHub (Aug 2, 2024):
Oh awesome! Thank you!
@jamesward commented on GitHub (Aug 2, 2024):
This might be fixed in #403 but even when turning the file into a URI, I still get the error:
I've confirmed that
file("src/hello.pkl").toURI()is:So maybe still something funky with the
C:/in there.@jamesward commented on GitHub (Aug 6, 2024):
Any other workaround ideas? Or any easy way to test the changes in #403 on Windows?
@bioball commented on GitHub (Aug 6, 2024):
This was just fixed in release 0.26.3! Give that a shot and let us know if you have any issues.
@jamesward commented on GitHub (Aug 6, 2024):
It works now! Thank you!