noisecat
noisecat copied to clipboard
Noisecat fails to compile on Linux
After git clone and fixing the assignment issue as described in #5, I get:
noisecat on master took 8s
❯ make
go get -u -f github.com/gedigi/noisecat/...
go get: -f flag is a no-op when using modules
go get: installing executables with 'go get' in module mode is deprecated.
Use 'go install pkg@version' instead.
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.
cd /tmp/noisecat/cmd/noisecat; \
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /tmp/noisecat/bin/noisecat-linux-amd64 . ; \
cd /tmp/noisecat >/dev/null
go: cannot find main module, but found .git/config in /tmp/noisecat
to create a module there, run:
cd ../.. && go mod init
cd /tmp/noisecat/cmd/noisecat; \
GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o /tmp/noisecat/bin/noisecat-darwin-amd64 . ; \
cd /tmp/noisecat >/dev/null
go: cannot find main module, but found .git/config in /tmp/noisecat
to create a module there, run:
cd ../.. && go mod init
cd /tmp/noisecat/cmd/noisecat; \
GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o /tmp/noisecat/bin/noisecat-windows-amd64.exe . ; \
cd /tmp/noisecat >/dev/null
go: cannot find main module, but found .git/config in /tmp/noisecat
to create a module there, run:
cd ../.. && go mod init
Version:
❯ go version
go version go1.17.3 linux/amd64
I'm running Manjaro 21.2.0.