mattn / go-tty

MIT License
211 stars 18 forks source link

UPDATE package_version #46

Closed SUETAK closed 2 years ago

SUETAK commented 2 years ago

本package を使用したところ、下記のようなエラーが出力され、実行できませんでした。

# golang.org/x/sys/unix
../../goPath/pkg/mod/golang.org/x/sys@v0.0.0-20191120155948-bd437916bb0e/unix/syscall_darwin.1_13.go:25:3: //go:linkname must refer to declared function or variable
../../goPath/pkg/mod/golang.org/x/sys@v0.0.0-20191120155948-bd437916bb0e/unix/zsyscall_darwin_amd64.1_13.go:27:3: //go:linkname must refer to declared function or variable
../../goPath/pkg/mod/golang.org/x/sys@v0.0.0-20191120155948-bd437916bb0e/unix/zsyscall_darwin_amd64.1_13.go:40:3: //go:linkname must refer to declared function or variable
../../goPath/pkg/mod/golang.org/x/sys@v0.0.0-20191120155948-bd437916bb0e/unix/zsyscall_darwin_amd64.go:28:3: //go:linkname must refer to declared function or variable
../../goPath/pkg/mod/golang.org/x/sys@v0.0.0-20191120155948-bd437916bb0e/unix/zsyscall_darwin_amd64.go:43:3: //go:linkname must refer to declared function or variable
../../goPath/pkg/mod/golang.org/x/sys@v0.0.0-20191120155948-bd437916bb0e/unix/zsyscall_darwin_amd64.go:59:3: //go:linkname must refer to declared function or variable
../../goPath/pkg/mod/golang.org/x/sys@v0.0.0-20191120155948-bd437916bb0e/unix/zsyscall_darwin_amd64.go:75:3: //go:linkname must refer to declared function or variable
../../goPath/pkg/mod/golang.org/x/sys@v0.0.0-20191120155948-bd437916bb0e/unix/zsyscall_darwin_amd64.go:90:3: //go:linkname must refer to declared function or variable
../../goPath/pkg/mod/golang.org/x/sys@v0.0.0-20191120155948-bd437916bb0e/unix/zsyscall_darwin_amd64.go:105:3: //go:linkname must refer to declared function or variable
../../goPath/pkg/mod/golang.org/x/sys@v0.0.0-20191120155948-bd437916bb0e/unix/zsyscall_darwin_amd64.go:121:3: //go:linkname must refer to declared function or variable
../../goPath/pkg/mod/golang.org/x/sys@v0.0.0-20191120155948-bd437916bb0e/unix/zsyscall_darwin_amd64.go:121:3: too many errors

go 1.18 で実行するには、golang.org/x/sys/unix のバージョンを新しくする必要があるとの記載を見つけたため、最新のバージョンをimport したプルリクエストを作成させていただきました。 https://stackoverflow.com/questions/71507321/go-1-18-build-error-on-mac-unix-syscall-darwin-1-13-go253-golinkname-mus