RedHatOfficial / GoCourse

Go language course
Other
487 stars 127 forks source link

issue #108, can't run present. changing go get --> go install as go get is deprecated. #139

Closed ashwini3326 closed 1 year ago

ashwini3326 commented 1 year ago

Starting in Go 1.17, installing executables with go get is deprecated. go install may be used instead. In Go 1.18, go get will no longer build packages; it will only be used to add, update, or remove dependencies in go.mod. Specifically, go get will always act as if the -d flag were enabled.

Cause of this issue, after running the following code go get golang.org/x/tools/cmd/present

when user tries to execute command present it says present not found.

Please check the following for more details.

https://go.dev/doc/go-get-install-deprecation