ncdns
ncdns copied to clipboard
GOROOT problem on Windows
Here's the output I get when I run the build commands on Windows:
C:\Users\rofl\go>go get -d -t -u github.com/namecoin/ncdns/...
C:\Users\rofl\go>go generate github.com/namecoin/ncdns/...
install.sh: line 6: no match: C:\Go/src/crypto/x509/*
src\github.com\namecoin\ncdns\x509\x509_splice.go:9: running "bash": exit status 1
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/* ./ to cp -a C:/Go/src/crypto/x509/* ./, the command succeeds.
EDIT: Oh, goroot, goroot!
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.