use go install instead of go get

This commit is contained in:
itchyny 2021-09-18 23:45:25 +09:00
parent bf465879e8
commit 535165d72f
2 changed files with 6 additions and 6 deletions

View file

@ -22,21 +22,21 @@ 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
goxz -n $(BIN) -pv=v$(VERSION) -build-ldflags=$(BUILD_LDFLAGS) ./cmd/$(BIN)
$(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
@ -48,7 +48,7 @@ lint: $(GOBIN)/golint
golint -set_exit_status ./...
$(GOBIN)/golint:
cd && go get golang.org/x/lint/golint
go install golang.org/x/lint/golint@latest
.PHONY: clean
clean:
@ -74,4 +74,4 @@ upload: $(GOBIN)/ghr
ghr "v$(VERSION)" goxz
$(GOBIN)/ghr:
cd && go get github.com/tcnksm/ghr
go install github.com/tcnksm/ghr@latest

View file

@ -24,7 +24,7 @@ brew install itchyny/tap/mmv
### Build from source
```bash
go get github.com/itchyny/mmv/cmd/mmv
go install github.com/itchyny/mmv/cmd/mmv@latest
```
## Features