Navigation Menu

Skip to content

Commit

Permalink
Fix go-systemd import with Go modules
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Jun 17, 2021
1 parent 468f40c commit 5e6b643
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions .cirrus.yml
Expand Up @@ -37,8 +37,7 @@ task:
fetch_script:
- cd $(go env GOPATH)/src/github.com/"$CIRRUS_REPO_FULL_NAME"
- go mod init
- go mod tidy
- go mod edit -replace github.com/namecoin/x509-compressed=../x509-compressed
- 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:
- cd $(go env GOPATH)/src/github.com/$CIRRUS_REPO_FULL_NAME/
Expand Down Expand Up @@ -118,8 +117,7 @@ task:
fetch_script:
- cd $(go env GOPATH)/src/github.com/"$CIRRUS_REPO_FULL_NAME"
- go mod init
- go mod tidy
- go mod edit -replace github.com/namecoin/x509-compressed=../x509-compressed
- 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
- mkdir -p $(go env GOPATH)/src/github.com/hlandau
Expand Down Expand Up @@ -175,8 +173,7 @@ task:
fetch_script:
- cd $(go env GOPATH)/src/github.com/"$CIRRUS_REPO_FULL_NAME"
- go mod init
- go mod tidy
- go mod edit -replace github.com/namecoin/x509-compressed=../x509-compressed
- 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:
- rm -rf idist
Expand Down
1 change: 1 addition & 0 deletions .golangci.yml
Expand Up @@ -5,3 +5,4 @@ linters-settings:
replace-local: true
replace-allow-list:
- "github.com/namecoin/x509-compressed"
- "github.com/coreos/go-systemd"
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -113,8 +113,7 @@ Option B: Using Go build commands with Go modules (works on any platform with Ba

~~~
go mod init
go mod tidy
go mod edit -replace github.com/namecoin/x509-compressed=../x509-compressed
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
~~~

Expand Down

0 comments on commit 5e6b643

Please sign in to comment.