-
Notifications
You must be signed in to change notification settings - Fork 139
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
Marking file as type "starlark" fails to allow it to be treated as a Starlark file. #786
Labels
bug
This issue describes a defect or unexpected behavior
priority/unprioritized-backlog
Higher priority than priority/awaiting-more-evidence but not planned. Contributions are welcome.
Comments
Thank you for creating the issue. I have noticed that the code on the step 3 is incorrect. It should be something with the following:
|
Whops! Thanks, @Zebradil. I updated the description. |
jtigger
added a commit
that referenced
this issue
Jan 25, 2023
... and plumb UI's stderr to Starlark's Print() so that even output from Starlark runtime respects UI settings. Fixes #786
jtigger
added a commit
that referenced
this issue
Jan 26, 2023
jtigger
added a commit
that referenced
this issue
Jan 26, 2023
Fixes #786 Signed-off-by: John Ryan <[email protected]>
jtigger
added a commit
that referenced
this issue
Jan 26, 2023
Fixes #786 Signed-off-by: John Ryan <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
This issue describes a defect or unexpected behavior
priority/unprioritized-backlog
Higher priority than priority/awaiting-more-evidence but not planned. Contributions are welcome.
Reported by @Zebradil in #carvel. Thank you. 🙏
Steps to Reproduce
star.test1
:ytt
regards this file a "unknown type" or "data" and so it is not evaluated (expected):.star
, andytt
regards this file a "starlark" file and evaluates it (expected):starlark
, andytt
should regard this file a "starlark" file and evaluate it:Anything else you would like to add:
Key symptom is the way in which a file is determined to be a "library file":
https://github.com/vmware-tanzu/carvel-ytt/blob/92f7de5ca3a11dfa5f341134f15cbc0a6b0fb31f/pkg/files/file.go#L242-L251
which only regards the extension of a file.
starlark
type files?type=yaml-library
)?Environment:
ytt --version
): 0.44.0 (likely introduced some versions back)/etc/os-release
): (all)Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.
The text was updated successfully, but these errors were encountered: