-
Notifications
You must be signed in to change notification settings - Fork 136
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
Make ytt
portable to windows by changing the library key constant
#524
Comments
Due to an issue described in carvel-dev/ytt#524, we need to rely on a fork of `ytt` which changes an expected constant/key. Once this is closed, we should go back to pointing at an official tag. Without this in place, ytt parsing will fail when our binary is run on Windows. Signed-off-by: joshrosso <[email protected]>
Thanks for the report, @joshrosso.
Yes, sir: changing the token would be a breaking change that we'd like to avoid. Having different path parsing strategies selected by OS seems more like the way to go. |
Per request in slack, this is the function that would bubble up the error[0] on windows: [0]:
|
Java uses |
Due to an issue described in carvel-dev/ytt#524, we need to rely on a fork of `ytt` which changes an expected constant/key. Once this is closed, we should go back to pointing at an official tag. Without this in place, ytt parsing will fail when our binary is run on Windows. Signed-off-by: joshrosso <[email protected]>
@joshrosso We are actively working on this now. Do you have a reproduction scenario so I can understand when this happens? |
Hey this has been fixed in #609. It has been fixed by allowing |
Describe the problem/challenge you have
I'm using
ytt
, as a go dependency, in a project. The binary for this project is used on Mac, Linux, and Windows.Due the the library reference key:
https://github.com/vmware-tanzu/carvel-ytt/blob/f53bcec371800411b4b2c4f5dde2b29b0610301c/pkg/cmd/template/data_values_flags.go#L211-L213
When absolute paths are used in Windows, the
C:\\
is parsed as such due to the presence of:
. This breaksytt
parsing when run on a Windows workstation.Describe the solution you'd like
To workaround this, I created a fork, which does:
https://github.com/joshrosso/carvel-ytt/commit/74085add68cc7047676ee3ea3906702de4b9490b
And it works great. While I'm not suggesting you change your key to
^
like I did, I wonder if it could be changed or some logic put in place to make this portable to windows?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: