go get: installing executables with 'go get' in module mode is deprecated.

1 개요[ | ]

go get: installing executables with 'go get' in module mode is deprecated.
Console
Copy
testuser@localhost:~$ go get -u github.com/spf13/cobra/cobra
go: downloading github.com/spf13/cobra v1.2.1
go: downloading github.com/spf13/viper v1.8.1
go: downloading github.com/inconshreveable/mousetrap v1.0.0
...
go: downloading golang.org/x/text v0.3.5
go: downloading golang.org/x/sys v0.0.0-20210915083310-ed5796bab164
go: downloading golang.org/x/text v0.3.7
go get: installing executables with 'go get' in module mode is deprecated.
        Use 'go install pkg@version' instead.
        For more information, see https://golang.org/doc/go-get-install-deprecation
        or run 'go help get' or 'go help install'.
Console
Copy
testuser@localhost:~$ go install github.com/spf13/cobra/cobra@latest
testuser@localhost:~$

2 같이 보기[ | ]