Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upTravis: Run tests on Windows. #109
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dmitshur
Oct 13, 2018
Contributor
Looks like it'll take some work to get tests to pass on Windows. I see the following issues so far:
gofmtreports every file as not formatted; this is likely because the line endings of .go files being checked out are converted to from\nto\r\n. This shouldn't be done.- A fix might be to configure the git repo (or tell Travis to) such that the .go files keep their canonical
\nnewlines when checked out on Windows. https://help.github.com/articles/dealing-with-line-endings/#platform-windows is related. - An alternative fix is to skip
gofmton Windows. I suspect this option is worse.
- A fix might be to configure the git repo (or tell Travis to) such that the .go files keep their canonical
- On Go 1.11.1,
./vcs/...packages are failing because ofexec: "gcc": executable file not found in %PATH%.- Not sure why this is happening in Go 1.11.1 build but not Go 1.9.7 build.
- On Go 1.9.7,
gccis not an issue and packages are building, but an SSH test in./vcsfails because a key file fail to be deleted:Error removing SSH key file C:\Users\travis\AppData\Local\Temp\go-vcs-gitcmd-key385111935: remove C:\Users\travis\AppData\Local\Temp\go-vcs-gitcmd-key385111935: The process cannot access the file because it is being used by another process.. - On
master,gimmefails to install Go.
|
Looks like it'll take some work to get tests to pass on Windows. I see the following issues so far:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dmitshur
Oct 13, 2018
Contributor
Looks like @keegancsmith is seeing very similar issues in sourcegraph/go-langserver#329, and has filed an issue about them at https://travis-ci.community/t/go-cant-find-gcc-with-go1-11-1-on-windows/293. This PR can wait until that's resolved.
|
Looks like @keegancsmith is seeing very similar issues in sourcegraph/go-langserver#329, and has filed an issue about them at https://travis-ci.community/t/go-cant-find-gcc-with-go1-11-1-on-windows/293. This PR can wait until that's resolved. |
dmitshur commentedOct 13, 2018
•
edited
There has been work done to the library over time to support Windows.
There's a chance for Windows support to deteriorate over time, since
it's not tested often. Fix that by running tests on Windows in CI.
Travis CI has recently added support for Windows, making this possible.
References: