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.
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: