From da3d9185a0c10d4df3b73efb57c7ecdbabc859a1 Mon Sep 17 00:00:00 2001 From: mr-pmillz <> Date: Wed, 8 Jun 2022 23:50:45 -0400 Subject: [PATCH] replace go get with go install --- MakeFile | 4 ++-- cheat/cheat.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 } }