GoogleCloudPlatform / GoogleCloudPlatform/cloud-builders-community
Line ending problem when using windows for helm
- 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
Assessment
This issue has not been assessed yet.