Open negatratoron opened 6 years ago
Which version of Windows? I don't think we've tested building on Windows, since Windows doesn't have Bash usually.
Windows 7 in a Cygwin shell.
Honestly I'm inclined to not support building on Windows, since it sounds like this would add complexity (thereby harming auditability), and cross-compiling from GNU/Linux is a lot more resistant to compromised build machines. If anyone wants to contribute a PR that fixes this without adding complexity, I'd be happy to review it though.
Here's the output I get when I run the build commands on Windows:
I guess backslashes in GOROOT need to be escaped.
Setting the GOROOT environment variable does not matter; I get the same error.
However, when I edit install.sh and change line 6 from
cp -a $(go env GOROOT)/src/crypto/x509/* ./
tocp -a C:/Go/src/crypto/x509/* ./
, the command succeeds.EDIT: Oh, goroot, goroot!