Skip to content

Can't read env: resource on Windows #1077

Open
@z-jxy

Description

@z-jxy

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions