Misleading error message when root dir check fails #298

Closed
opened 2025-12-30 01:23:16 +01:00 by adam · 2 comments
Owner

Originally created by @bioball on GitHub (Mar 8, 2025).

When the root dir check fails, we get an error message like:

–– Pkl Error ––
Refusing to load module `file:///path/to/file.pkl` because it does not match any entry in the module allowlist (`--allowed-modules`

However, it's actually not related to the allowed modules flag, but the root dir flag.

Originally created by @bioball on GitHub (Mar 8, 2025). When the root dir check fails, we get an error message like: ``` –– Pkl Error –– Refusing to load module `file:///path/to/file.pkl` because it does not match any entry in the module allowlist (`--allowed-modules` ``` However, it's actually not related to the allowed modules flag, but the root dir flag.
adam closed this issue 2025-12-30 01:23:16 +01:00
Author
Owner

@gootik commented on GitHub (Mar 31, 2025):

Thanks for reporting it. This bug really confused me for hours today!

@gootik commented on GitHub (Mar 31, 2025): Thanks for reporting it. This bug really confused me for hours today!
Author
Owner

@bioball commented on GitHub (Dec 19, 2025):

Fixed by #1234

@bioball commented on GitHub (Dec 19, 2025): Fixed by #1234
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#298