Skip to content

Can't read env: resource on Windows #1077

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
z-jxy opened this issue May 24, 2025 · 0 comments
Open

Can't read env: resource on Windows #1077

z-jxy opened this issue May 24, 2025 · 0 comments

Comments

@z-jxy
Copy link

z-jxy commented May 24, 2025

Version: Pkl 0.28.2 (Windows 10.0, native)

Pkl fails to find the env: resource on Windows

➜ pkl eval .\tests\pkl\allowed-resources.pkl
ΓÇôΓÇô Pkl Error ΓÇôΓÇô
Cannot find resource `env:PATH`.

1 | path = read("env:PATH")
           ^^^^^^^^^^^^^^^^
at allowed-resources#path (file:///C:/Users/user/tests/pkl/allowed-resources.pkl, line 1)

106 | text = renderer.renderDocument(value)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
at pkl.base#Module.output.text (https://github.com/apple/pkl/blob/0.28.2/stdlib/base.pkl#L106)
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

No branches or pull requests

1 participant