Skip to content

Commit

Permalink
replace go get with go install
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-pmillz committed Jun 9, 2022
1 parent ab1a8ef commit da3d918
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions MakeFile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cheat/cheat.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit da3d918

Please sign in to comment.