asciimoo / wuzz

Interactive cli tool for HTTP inspection
GNU Affero General Public License v3.0
10.58k stars 412 forks source link

Undefined error with unix.IoctlGetTermios when doing "go get" #139

Closed mason-jones-ck closed 3 years ago

mason-jones-ck commented 3 years ago
$ go get github.com/asciimoo/wuzz
# github.com/mattn/go-isatty
.../src/github.com/mattn/go-isatty/isatty_bsd.go:10:12: undefined: unix.IoctlGetTermios

This is on a Mac, running go version go1.14.3 darwin/amd64. I did some searching and found a similar issue on another project (https://github.com/golang/go/issues/22688) and I tried rebuilding golang.org/x/sys/unix since it seemed to help some people there, but it didn't make a difference in this case.

Any suggestions would be great -- thanks.

mason-jones-ck commented 3 years ago

I realized the root of this error is of course in the go-isatty package, and found that there is an existing issue about this opened against it: https://github.com/mattn/go-isatty/issues/53

mason-jones-ck commented 3 years ago

However, that issue is over a year old, so it may be necessary to find a replacement for go-isatty to get this working...

mason-jones-ck commented 3 years ago

Just to close the loop on this in case others encounter it: there was something out of sync, apparently, in the golang.org/x/sys package which go-isatty didn't like. I removed that package and re-fetched go-isatty and it worked (documented in that issue). Since this didn't have anything to do with wuzz specifically, I'll close this but at least it's here for posterity.