diff --git a/MakeFile b/MakeFile index 3567d88..ca8dd76 100644 --- a/MakeFile +++ b/MakeFile @@ -48,8 +48,8 @@ test: go test -json -v ./... 2>&1 | tee coverage/gotest.log | gotestfmt else ifndef RICHGO - $(warning "could not find richgo in $(PATH), running: go get github.com/kyoh86/richgo") - $(shell go get -u github.com/kyoh86/richgo) + $(warning "could not find richgo in $(PATH), running: go install github.com/kyoh86/richgo@latest") + $(shell go install github.com/kyoh86/richgo@latest) endif richgo test -v ./... endif diff --git a/cheat/cheat.go b/cheat/cheat.go index b1bc2a0..05afa46 100644 --- a/cheat/cheat.go +++ b/cheat/cheat.go @@ -51,7 +51,7 @@ func InstallCheat(osType string, dirs *localio.Directories, packages *localio.In if _, exists := localio.CommandExists("cheat"); !exists { fmt.Println("[+] Installing cheat") if _, exists = localio.CommandExists("go"); exists { - if err := localio.RunCommandPipeOutput("go get -u github.com/cheat/cheat/cmd/cheat"); err != nil { + if err := localio.RunCommandPipeOutput("go install github.com/cheat/cheat/cmd/cheat@latest"); err != nil { return err } }