Skip to content

Commit

Permalink
Merge pull request #13 from VinozzZ/switch-to-go-install
Browse files Browse the repository at this point in the history
pkg: swtich from go get to go install when installing a go package
  • Loading branch information
carolynvs authored Mar 24, 2022
2 parents 412b108 + fd2d99b commit 0994e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func InstallPackage(pkg string, version string) error {
}

fmt.Printf("Installing %s%s\n", cmd, moduleVersion)
err := shx.Command("go", "get", "-u", pkg+moduleVersion).
err := shx.Command("go", "install", pkg+moduleVersion).
Env("GO111MODULE=on").In(os.TempDir()).RunE()
if err != nil {
return err
Expand Down

0 comments on commit 0994e1c

Please sign in to comment.