Installing executables in module mode with go get is deprecated
function install_go_junit_report() {
cd "$(mktemp -d)"
go mod init go-junit-report
go get github.com/jstemmer/go-junit-report
cd -
}
function install_go_mod_outdated() {
cd "$(mktemp -d)"
go mod init go-mod-outdated
go get github.com/psampaz/go-mod-outdated
cd -
}
go: downloading github.com/jstemmer/go-junit-report v0.9.1
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'.
go get: added github.com/jstemmer/go-junit-report v0.9.1
Edited by Boris