You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the file in the repo is not present, settings.Uri is falling back to codegen/src/GeneratorSettings.pkl and relative settings.ProjectDir (which can be set with the flag) is not joined correctly.
Expected behaviour:
Project dir should rely on current working dir, rather than on settings file, that might be falling back to global pkg set that makes --project-dir relative paths obsolete.
The text was updated successfully, but these errors were encountered:
Simple project structure that is evaluated well with
pkl eval
But is failing to evaluate when global
pkl-gen-go
is used. (go install github.com/apple/pkl-go/cmd/pkl-gen-go@latest
)The problem could not be replicated in the cloned pkl-go repo, because
generator-settings.pkl
is present in the root, and project dir is built correctly (https://github.com/apple/pkl-go/blob/main/cmd/pkl-gen-go/pkl-gen-go.go#L107)If the file in the repo is not present,
settings.Uri
is falling back tocodegen/src/GeneratorSettings.pkl
and relativesettings.ProjectDir
(which can be set with the flag) is not joined correctly.Expected behaviour:
Project dir should rely on current working dir, rather than on settings file, that might be falling back to global pkg set that makes
--project-dir
relative paths obsolete.The text was updated successfully, but these errors were encountered: