Skip to content

Commit

Permalink
use go install instead of go get
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Sep 13, 2021
1 parent 370bfe9 commit b11cd00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ show-version: $(GOBIN)/gobump
@gobump show -r $(VERSION_PATH)

$(GOBIN)/gobump:
@cd && go get github.com/x-motemen/gobump/cmd/gobump
@go install github.com/x-motemen/gobump/cmd/gobump@latest

.PHONY: cross
cross: $(GOBIN)/goxz CREDITS
Expand All @@ -32,14 +32,14 @@ cross: $(GOBIN)/goxz CREDITS
build linux,darwin,windows amd64 && build linux,darwin arm64

$(GOBIN)/goxz:
cd && go get github.com/Songmu/goxz/cmd/goxz
go install github.com/Songmu/goxz/cmd/goxz@latest

CREDITS: $(GOBIN)/gocredits go.sum
go mod tidy
gocredits -w .

$(GOBIN)/gocredits:
cd && go get github.com/Songmu/gocredits/cmd/gocredits
go install github.com/Songmu/gocredits/cmd/gocredits@latest

.PHONY: test
test: build
Expand All @@ -51,7 +51,7 @@ lint: $(GOBIN)/staticcheck
staticcheck ./...

$(GOBIN)/staticcheck:
cd && go get honnef.co/go/tools/cmd/staticcheck
go install honnef.co/go/tools/cmd/staticcheck@latest

.PHONY: clean
clean:
Expand All @@ -77,4 +77,4 @@ upload: $(GOBIN)/ghr
ghr "v$(VERSION)" goxz

$(GOBIN)/ghr:
cd && go get github.com/tcnksm/ghr
go install github.com/tcnksm/ghr@latest
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ brew install itchyny/tap/gojo

### Build from source
```bash
go get github.com/itchyny/gojo/cmd/gojo
go install github.com/itchyny/gojo/cmd/gojo@latest
```

## Difference to jo
Expand Down

0 comments on commit b11cd00

Please sign in to comment.