Skip to content

Commit

Permalink
workaround to install golint globally (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
imrekel authored Dec 16, 2020
1 parent e54d0d4 commit 1b9692a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func main() {

if !installedInPath("golint") {
cmd := command.New("go", "get", "-u", "golang.org/x/lint/golint")
cmd.SetDir("/") // workaround for https://github.com/golang/go/issues/30515 to install the package globally

log.Infof("\nInstalling golint")
log.Donef("$ %s", cmd.PrintableCommandArgs())
Expand Down

0 comments on commit 1b9692a

Please sign in to comment.