sanbornm / go-selfupdate

Enable your Go applications to self update
MIT License
1.53k stars 176 forks source link

Installation command is outdated #45

Closed zchenyu closed 1 year ago

zchenyu commented 1 year ago

The current command fails with

$ go get -u github.com/sanbornm/go-selfupdate/...
go: go.mod file not found in current directory or any parent directory.
    'go get' is no longer supported outside a module.
    To build and install a command, 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'.

The correct command now is go install github.com/sanbornm/go-selfupdate/cmd/go-selfupdate@latest

PR: https://github.com/sanbornm/go-selfupdate/pull/44