Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit da3d918

Browse files
author
mr-pmillz
committed
replace go get with go install
1 parent ab1a8ef commit da3d918

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

MakeFile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ test:
4848
go test -json -v ./... 2>&1 | tee coverage/gotest.log | gotestfmt
4949
else
5050
ifndef RICHGO
51-
$(warning "could not find richgo in $(PATH), running: go get github.com/kyoh86/richgo")
52-
$(shell go get -u github.com/kyoh86/richgo)
51+
$(warning "could not find richgo in $(PATH), running: go install github.com/kyoh86/richgo@latest")
52+
$(shell go install github.com/kyoh86/richgo@latest)
5353
endif
5454
richgo test -v ./...
5555
endif

cheat/cheat.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func InstallCheat(osType string, dirs *localio.Directories, packages *localio.In
5151
if _, exists := localio.CommandExists("cheat"); !exists {
5252
fmt.Println("[+] Installing cheat")
5353
if _, exists = localio.CommandExists("go"); exists {
54-
if err := localio.RunCommandPipeOutput("go get -u github.com/cheat/cheat/cmd/cheat"); err != nil {
54+
if err := localio.RunCommandPipeOutput("go install github.com/cheat/cheat/cmd/cheat@latest"); err != nil {
5555
return err
5656
}
5757
}

0 commit comments

Comments
 (0)