Skip to content

Replace `go get` with `go install`

Pedro Pombeiro requested to merge pedropombeiro/28776-fix-go-get into main

What does this MR do?

It replaces the deprecated usage of go get with go install ...@<version>

Why was this MR needed?

To get rid of the following warning.

go get github.com/mitchellh/gox@latest
go get: installing executables with 'go get' in module mode is deprecated.
	To adjust and download dependencies of the current module, use 'go get -d'.
	To install using requirements of the current module, use 'go install'.
	To install ignoring the current module, use 'go install' with a version,
	like 'go install example.com/cmd@latest'.
	For more information, see https://golang.org/doc/go-get-install-deprecation
	or run 'go help get' or 'go help install'.

What's the best way to test this MR?

Run make runner-bin-host and check that the wall of text doesn't show up anymore. The pipeline being green should mean that gox was installed correctly.

What are the relevant issue numbers?

Closes #28776 (closed)

Edited by Pedro Pombeiro

Merge request reports