Closed richstokes closed 5 years ago
Huh, for some reason it looks like it's downloading termui v2.3 instead of v3. Not sure why that would be. Maybe explicitly downloading the latest version would work. Btw, are you working outside of the $GOPATH?
I'm experiencing a similar problem when running dep ensure -add github.com/gizak/termui
:
Solving failure: No versions of github.com/gizak/termui met constraints:
v3.0.0: Could not introduce github.com/gizak/termui@v3.0.0 due to multiple problematic subpackages:
Subpackage github.com/gizak/termui/v3 is missing. (Package is required by (root).) Subpackage github.com/gizak/termui/v3/widgets is missing. (Package is required by (root).)
It seems to me that version 3 is still a private repository and cannot be downloaded. Same problem here.
Update: since I'm using go-1.10 I've made the symlinks from termui to termiui /v3 and now th Go compiler can find the package and runs the termui properly. I hope it can help you.
https://github.com/gizak/termui/tree/v3 hasn't been tagged yet
Should be working now, let me know if you still get errors. I forgot that Go modules requires having a v3 branch or v3 subdirectory, and I went with the subdirectory.
Trying to run the hello world code, with the go.mod file in place I get:
Probably missing something silly, but I'm not sure where to start. Any suggestions welcome.