yudai / gotty

Share your terminal as a web application
MIT License
18.77k stars 1.38k forks source link

Compilation fails with GO111MODULE=on #272

Open harshavardhana opened 4 years ago

harshavardhana commented 4 years ago

Trying to compile from master

~ go get github.com/yudai/gotty
go: finding github.com/yudai/gotty v1.0.1
go: downloading github.com/yudai/gotty v1.0.1
go: extracting github.com/yudai/gotty v1.0.1
go: finding github.com/yudai/hcl latest
go: finding github.com/yudai/umutex latest
go: finding github.com/kr/pty v1.1.8
go: finding github.com/codegangsta/cli v1.22.2
go: downloading github.com/yudai/umutex v0.0.0-20150817080136-18216d265c6b
go: downloading github.com/yudai/hcl v0.0.0-20151013225006-5fa2393b3552
go: downloading github.com/kr/pty v1.1.8
go: downloading github.com/codegangsta/cli v1.22.2
go: extracting github.com/kr/pty v1.1.8
go: extracting github.com/yudai/umutex v0.0.0-20150817080136-18216d265c6b
go: finding github.com/braintree/manners latest
go: extracting github.com/yudai/hcl v0.0.0-20151013225006-5fa2393b3552
go: downloading github.com/braintree/manners v0.0.0-20160418043613-82a8879fc5fd
go: extracting github.com/codegangsta/cli v1.22.2
go: extracting github.com/braintree/manners v0.0.0-20160418043613-82a8879fc5fd
go: github.com/yudai/gotty imports
    github.com/codegangsta/cli: github.com/codegangsta/cli@v1.22.2: parsing go.mod:
    module declares its path as: github.com/urfave/cli
            but was required as: github.com/codegangsta/cli
~  go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/harsha/.cache/go-build"
GOENV="/home/harsha/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/harsha/mygo"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/harsha/.gimme/versions/go1.13.4.linux.amd64"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/harsha/.gimme/versions/go1.13.4.linux.amd64/pkg/tool/linux_amd64"
GCCGO="/usr/bin/gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build691332579=/tmp/go-build -gno-record-gcc-switches"
ghost commented 4 years ago

same issue

jiguangsdf commented 4 years ago
  1. git clone this repo.
  2. cd gotty
  3. go mod init github.com/yudai/gotty
  4. go build

hope I can help you,This is because of the go.mod environment file

FergusFettes commented 3 years ago

Would be great if this was in the 'development' section of the README.

sorenisanerd commented 3 years ago

Fixed in my new fork: https://github.com/sorenisanerd/gotty