How to install lazykube with go command
zhaoweiguo opened this issue · 0 comments
zhaoweiguo commented
I want to install lazykube with go command and find these issue:
➜ go install github.com/TNK-Studio/lazykube/cmd/lazykube@latest
go install github.com/TNK-Studio/lazykube/cmd/lazykube@latest: github.com/TNK-Studio/lazykube@v0.10.0
The go.mod file for the module providing named packages contains one or
more replace directives. It must not contain directives that would cause
it to be interpreted differently than if it were the main module.
~
➜ go get github.com/TNK-Studio/lazykube/cmd/lazykube
# github.com/TNK-Studio/lazykube/pkg/gui
9tool/go/pkg/mod/github.com/!t!n!k-!studio/lazykube@v0.10.0/pkg/gui/view.go:97:9: view.v.MouseDisable undefined (type *gocui.View has no field or method MouseDisable)
9tool/go/pkg/mod/github.com/!t!n!k-!studio/lazykube@v0.10.0/pkg/gui/view.go:99:9: view.v.OnCursorChange undefined (type *gocui.View has no field or method OnCursorChange)
# github.com/moby/term
9tool/go/pkg/mod/github.com/moby/term@v0.0.0-20200312100748-672ec06f55cd/tc.go:13:28: undefined: unix.SYS_IOCTL
9tool/go/pkg/mod/github.com/moby/term@v0.0.0-20200312100748-672ec06f55cd/tc.go:18:28: undefined: unix.SYS_IOCTL
9tool/go/pkg/mod/github.com/moby/term@v0.0.0-20200312100748-672ec06f55cd/termios_bsd.go:24:31: undefined: unix.SYS_IOCTL
9tool/go/pkg/mod/github.com/moby/term@v0.0.0-20200312100748-672ec06f55cd/termios_bsd.go:37:31: undefined: unix.SYS_IOCTL
~ took 8s
➜ go version
go version go1.16 darwin/amd64
- go install command seems like it doesn't allow
replace
directive in go.mod file. - go get command seems like Mouse, Cursor ... gui things which i don't know, and can't find solution with google.
I have done it byclone & go build
.
PS:
README.md need be updated: $ go get -u github.com/TNK-Studio/lazykube
doesn't work.