Closed jtigger closed 1 year ago
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:
ytt -f test.star
Whops! Thanks, @Zebradil. I updated the description.
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:(but it does not 🛑)
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.