yudai/gotty

Installation through `go install` fails because of dependency issue

DrPyser opened this issue · 4 comments

See #313. OP shared a commit with a fix on GoDeps(issue shouldn't have been closed).

What version of GoTTY are you using (gotty --version)?

v1.0.1

What operating system and browser are you using?

Ubuntu 20.04, Firefox

What did you do?

go install github.com/yudai/gotty@latest

What did you expect to see?

successful go install

What did you see instead?

go: downloading github.com/yudai/gotty v1.0.1
go: finding module for package github.com/codegangsta/cli
go: finding module for package github.com/elazarl/go-bindata-assetfs
go: finding module for package github.com/gorilla/websocket
go: finding module for package github.com/fatih/structs
go: finding module for package github.com/kr/pty
go: finding module for package github.com/yudai/hcl
go: finding module for package github.com/yudai/umutex
go: finding module for package github.com/braintree/manners
go: downloading github.com/yudai/hcl v0.0.0-20151013225006-5fa2393b3552
go: downloading github.com/yudai/umutex v0.0.0-20150817080136-18216d265c6b
go: downloading github.com/codegangsta/cli v1.22.8
go: downloading github.com/elazarl/go-bindata-assetfs v1.0.1
go: downloading github.com/braintree/manners v0.0.0-20160418043613-82a8879fc5fd
go: downloading github.com/fatih/structs v1.1.0
go: downloading github.com/gorilla/websocket v1.5.0
go: downloading github.com/kr/pty v1.1.8
go: found github.com/codegangsta/cli in github.com/codegangsta/cli v1.22.8
go: found github.com/fatih/structs in github.com/fatih/structs v1.1.0
go: found github.com/braintree/manners in github.com/braintree/manners v0.0.0-20160418043613-82a8879fc5fd
go: found github.com/elazarl/go-bindata-assetfs in github.com/elazarl/go-bindata-assetfs v1.0.1
go: found github.com/gorilla/websocket in github.com/gorilla/websocket v1.5.0
go: found github.com/kr/pty in github.com/kr/pty v1.1.8
go: found github.com/yudai/hcl in github.com/yudai/hcl v0.0.0-20151013225006-5fa2393b3552
go: found github.com/yudai/umutex in github.com/yudai/umutex v0.0.0-20150817080136-18216d265c6b
go: github.com/yudai/gotty imports
	github.com/codegangsta/cli: github.com/codegangsta/cli@v1.22.8: parsing go.mod:
	module declares its path as: github.com/urfave/cli
	        but was required as: github.com/codegangsta/cli

Sorry, just realized this repo hasn't been active for 5 years. Found a functional maintained fork at here.

An alternative to using a fork is using prebuilt version 1.0.1 binaries: https://github.com/yudai/gotty/releases/tag/v1.0.1

In addition to the repo @DrPyser kindly shared, there is also ghthor/gotty.
@ghthor: cc'ing you in case you're not aware of sorenisanerd/gotty and to thank you for providing your fork!

ghthor commented

Yes, I was aware of sorenisanerd/gotty but wanted to maintain my own fork anyway