GoogleCloudPlatform / GoogleCloudPlatform/cloud-builders-community

Line ending problem when using windows for helm

Open
#101 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.3k
Forks
848
PR merge metrics
No merged PRs in 30d

Description

When following the helm/README.md, I'm getting the following error when using could build during building:
`standard_init_linux.go:195: exec user process caused "no such file or directory"`

This is due to the produced docker image not being correct.
After investigation, this appears to be a line ending issue.

When converting line endings of all files from a windows line-ending (\r\n) to unix line ending (\n) before calling the `gcloud builds submit` command, a working image is obtained.

I'm not sure what a correct approach would be to correct this problem, since line endings seem to be dependent on the local git config.

At the very least, this could be mentioned in the helm/README.md

I haven't checked, but the same issue could be present in other community builders.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.