raoulh / mc-cli

Moolticute CLI tool
GNU General Public License v3.0
5 stars 3 forks source link

Can't install with latest go1.21.0 #9

Closed ai212983 closed 1 year ago

ai212983 commented 1 year ago

Installing with go get fails:

❯ go get github.com/raoulh/mc-cli
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'.

Using go install github.com/raoulh/mc-cli@latest seems to fail too:

❯ go install github.com/raoulh/mc-cli@latest
go: downloading github.com/raoulh/mc-cli v0.0.0-20181026091414-9bd05859b302
go: finding module for package github.com/fatih/color
go: finding module for package github.com/raoulh/go-progress
go: finding module for package github.com/satori/go.uuid
go: finding module for package github.com/k-takata/go-iscygpty
go: finding module for package github.com/gorilla/websocket
go: finding module for package github.com/mattn/go-isatty
go: finding module for package github.com/howeyc/gopass
go: finding module for package github.com/jawher/mow.cli
go: downloading github.com/satori/go.uuid v1.2.0
go: downloading github.com/fatih/color v1.15.0
go: downloading github.com/gorilla/websocket v1.5.0
go: downloading github.com/mattn/go-isatty v0.0.19
go: downloading github.com/jawher/mow.cli v1.2.0
go: downloading github.com/howeyc/gopass v0.0.0-20210920133722-c8aef6fb66ef
go: downloading github.com/raoulh/go-progress v0.0.0-20161105090339-89c9d35f7878
go: downloading github.com/k-takata/go-iscygpty v0.0.0-20161209104439-ef1d38de59ba
go: found github.com/fatih/color in github.com/fatih/color v1.15.0
go: found github.com/gorilla/websocket in github.com/gorilla/websocket v1.5.0
go: found github.com/howeyc/gopass in github.com/howeyc/gopass v0.0.0-20210920133722-c8aef6fb66ef
go: found github.com/jawher/mow.cli in github.com/jawher/mow.cli v1.2.0
go: found github.com/k-takata/go-iscygpty in github.com/k-takata/go-iscygpty v0.0.0-20161209104439-ef1d38de59ba
go: found github.com/mattn/go-isatty in github.com/mattn/go-isatty v0.0.19
go: found github.com/raoulh/go-progress in github.com/raoulh/go-progress v0.0.0-20161105090339-89c9d35f7878
go: found github.com/satori/go.uuid in github.com/satori/go.uuid v1.2.0
go: downloading golang.org/x/sys v0.6.0
go: downloading github.com/mattn/go-colorable v0.1.13
go: finding module for package golang.org/x/crypto/ssh/terminal
go: downloading golang.org/x/crypto v0.12.0
go: found golang.org/x/crypto/ssh/terminal in golang.org/x/crypto v0.12.0
go: downloading golang.org/x/sys v0.11.0
go: downloading golang.org/x/term v0.11.0
# github.com/raoulh/mc-cli
../../../../go/pkg/mod/github.com/raoulh/mc-cli@v0.0.0-20181026091414-9bd05859b302/moolticute.go:72:23: assignment mismatch: 2 variables but uuid.NewV4 returns 1 value
../../../../go/pkg/mod/github.com/raoulh/mc-cli@v0.0.0-20181026091414-9bd05859b302/moolticute.go:160:22: assignment mismatch: 2 variables but uuid.NewV4 returns 1 value
../../../../go/pkg/mod/github.com/raoulh/mc-cli@v0.0.0-20181026091414-9bd05859b302/moolticute.go:269:22: assignment mismatch: 2 variables but uuid.NewV4 returns 1 value
❯ go version
go version go1.21.0 darwin/arm64

p.s. I suppose same problem will occur with mc-agent

raoulh commented 1 year ago

Fixed, should work now with go install github.com/raoulh/mc-cli@latest