Hi,
I am migrating a project to go modules. I have already moved everything to the vendor folder and checked in the files.
After running go mod vendor on the clean working git tree, one of the files from a dependency, runbench.cmd, appears to
be changed according to git. I am getting the following warning:
The file will have its original line endings in your working directory.
In the repos gitattributes file *.cmd files configured to keep their original line endings, CRLF:
*.cmd text eol=crlf
It seems like go mod command does not take newlines into account when downloading packages.
Do you have any suggestion on how to fix this problem besides checking out the file again or adding a special
rule to gitattributes for this file?
I am using go 1.13.7 on linux/amd64.
Thank you in advance!
BR,
n