352b173e13 Cirrus: Specify module path in "go mod init" (Jeremy Rand)
db018882ed readme: specify module path in go mod init command (Jeremy Rand)
Pull request description:
Fixes error:
go: cannot determine module path for source directory
/home/redfish/foo/ncdns (outside GOPATH, module path must be
specified)
Fixes#141
Top commit has no ACKs.
Tree-SHA512: 06368a0a936efdea2aa0fe44847459d3b5f61fc440dc977f7fbd302fc9fa14c3555ffbdc7cd41eeb570748032f3a2e9db0e563315658d42685c2b4429599c6ad
- cd $(go env GOPATH)/src/github.com/"$CIRRUS_REPO_FULL_NAME"
- go mod init
- go mod init github.com/"$CIRRUS_REPO_FULL_NAME"
- go mod edit -replace github.com/coreos/go-systemd=github.com/coreos/go-systemd/v22@latest -replace github.com/namecoin/x509-compressed=../x509-compressed
- cd $(go env GOPATH)/src/github.com/"$CIRRUS_REPO_FULL_NAME"
- go mod init
- go mod init github.com/"$CIRRUS_REPO_FULL_NAME"
- go mod edit -replace github.com/coreos/go-systemd=github.com/coreos/go-systemd/v22@latest -replace github.com/namecoin/x509-compressed=../x509-compressed
- cd $(go env GOPATH)/src/github.com/"$CIRRUS_REPO_FULL_NAME"
- go mod init
- go mod init github.com/"$CIRRUS_REPO_FULL_NAME"
- go mod edit -replace github.com/coreos/go-systemd=github.com/coreos/go-systemd/v22@latest -replace github.com/namecoin/x509-compressed=../x509-compressed
@ -112,7 +112,7 @@ Option B: Using Go build commands with Go modules (works on any platform with Ba
2. Run the following in the ncdns directory to set up Go modules:
~~~
go mod init
go mod init github.com/namecoin/ncdns
go mod edit -replace github.com/coreos/go-systemd=github.com/coreos/go-systemd/v22@latest -replace github.com/namecoin/x509-compressed=../x509-compressed