Closed uschen closed 5 years ago
Hmm, that's unfortunate. So the only solution is to create a v3 subdirectory? If so, then that's fine.
edit: Just out of curiosity, what's the reason for not upgrading to Go modules?
edit: Just out of curiosity, what's the reason for not upgrading to Go modules?
@cjbassi not sure how to answer this except... there are always reasons for not upgrading to go modules, legacy, ci/cd config, laziness etc etc.
Have to agree the /v3 missing appears to be causing this not to work.
go build main.go main.go:6:2: cannot find package "github.com/gizak/termui/v3" in any of: /usr/local/go/src/github.com/gizak/termui/v3 (from $GOROOT) /home/user/GO_Code/src/github.com/gizak/termui/v3 (from $GOPATH) main.go:7:2: cannot find package "github.com/gizak/termui/v3/widgets" in any of: /usr/local/go/src/github.com/gizak/termui/v3/widgets (from $GOROOT) /home/user/GO_Code/src/github.com/gizak/termui/v3/widgets (from $GOPATH)
After creating the v3 and v3/widgets directories I get these errors: main.go:6:2: no Go files in /home/user/GO_Code/src/github.com/gizak/termui/v3 main.go:7:2: no Go files in /home/user/GO_Code/src/github.com/gizak/termui/v3/widgets
So if someone could please create a post / document on how you are supposed to install this.
I got it to work by removing the /v3
in the import path. Can you test that?
Thanks cjbassi, removing the /v3 from both import lines fixed all issues. Many thanks
I just added instructions to the readme about installing termui with dep. Let me know if there's any issues with the instructions. I might opt into using a v3
subdirectory at some point but I think this should be fine for now.
it seems this is due to there is no
v3
directory, per https://github.com/golang/go/wiki/Modules