mirror of
https://github.com/namecoin/ncdns
synced 2024-11-16 00:13:01 +00:00
Merge #142: readme: specify module path in go mod init command
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
This commit is contained in:
commit
2a486311b0
12
.cirrus.yml
12
.cirrus.yml
@ -29,14 +29,14 @@ task:
|
||||
- cd ../
|
||||
- git clone https://github.com/namecoin/x509-compressed.git
|
||||
- cd x509-compressed
|
||||
- go mod init
|
||||
- go mod init github.com/namecoin/x509-compressed
|
||||
- go mod tidy
|
||||
- go generate ./...
|
||||
- go mod tidy
|
||||
- go install -v ./...
|
||||
fetch_script:
|
||||
- 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
|
||||
- go mod tidy
|
||||
lint_script:
|
||||
@ -109,14 +109,14 @@ task:
|
||||
- cd ../
|
||||
- git clone https://github.com/namecoin/x509-compressed.git
|
||||
- cd x509-compressed
|
||||
- go mod init
|
||||
- go mod init github.com/namecoin/x509-compressed
|
||||
- go mod tidy
|
||||
- go generate ./...
|
||||
- go mod tidy
|
||||
- go install -v ./...
|
||||
fetch_script:
|
||||
- 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
|
||||
- go mod tidy
|
||||
# Get the test suite
|
||||
@ -165,14 +165,14 @@ task:
|
||||
- cd ../
|
||||
- git clone https://github.com/namecoin/x509-compressed.git
|
||||
- cd x509-compressed
|
||||
- go mod init
|
||||
- go mod init github.com/namecoin/x509-compressed
|
||||
- go mod tidy
|
||||
- go generate ./...
|
||||
- go mod tidy
|
||||
- go install -v ./...
|
||||
fetch_script:
|
||||
- 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
|
||||
- go mod tidy
|
||||
build_script:
|
||||
|
@ -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
|
||||
go mod tidy
|
||||
~~~
|
||||
|
Loading…
Reference in New Issue
Block a user