alibaba / kt-connect

A toolkit for Integrating with your kubernetes dev environment more efficiently
https://alibaba.github.io/kt-connect/#/
GNU General Public License v3.0
1.48k stars 231 forks source link

0.3.7 release failed to build against go1.20 #398

Open chenrui333 opened 1 year ago

chenrui333 commented 1 year ago

👋 while regression testing go1.20 upgrade, I ran into the following error:

go
build
-trimpath
-o=/usr/local/Cellar/kt-connect/0.3.7/bin/ktctl
-ldflags=-s -w -X main.version=0.3.7
./cmd/ktctl

go: downloading k8s.io/client-go v0.22.0
go: downloading k8s.io/api v0.22.0
go: downloading k8s.io/apimachinery v0.22.0
go: downloading gopkg.in/yaml.v3 v3.0.0
go: downloading github.com/miekg/dns v1.1.45
go: downloading github.com/linfan/tun2socks/v2 v2.4.2-0.20220501081747-6f4a45525a7c
go: downloading golang.org/x/net v0.0.0-20220403103023-749bd193bc2b
go: downloading golang.org/x/sys v0.0.0-20220405210540-1e041c57c461
go: downloading k8s.io/utils v0.0.0-20210707171843-4b05e18ac7d9
go: downloading github.com/wzshiming/socks5 v0.4.1
go: downloading github.com/wzshiming/sshproxy v0.2.1
go: downloading gvisor.dev/gvisor v0.0.0-20220405222207-795f4f0139bb
go: downloading github.com/wzshiming/sshd v0.1.5
go: downloading github.com/Dreamacro/go-shadowsocks2 v0.1.7
go: downloading golang.zx2c4.com/wireguard v0.0.0-20220318042302-193cf8d6a5d6
go: downloading github.com/go-chi/render v1.0.1
go: downloading github.com/go-chi/chi/v5 v5.0.7
go: downloading github.com/go-chi/cors v1.2.0
package github.com/alibaba/kt-connect/cmd/ktctl
    imports github.com/alibaba/kt-connect/pkg/kt/command
    imports github.com/alibaba/kt-connect/pkg/kt/command/clean
    imports github.com/alibaba/kt-connect/pkg/kt/command/general
    imports github.com/alibaba/kt-connect/pkg/kt/service/tun
    imports github.com/xjasonlyu/tun2socks/v2/engine
    imports github.com/xjasonlyu/tun2socks/v2/core
    imports github.com/xjasonlyu/tun2socks/v2/core/adapter
    imports gvisor.dev/gvisor/pkg/tcpip/stack
    imports gvisor.dev/gvisor/pkg/atomicbitops
    imports gvisor.dev/gvisor/pkg/state
    imports gvisor.dev/gvisor/pkg/state/wire
    imports gvisor.dev/gvisor/pkg/gohacks: build constraints exclude all Go files in /Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/gvisor.dev/gvisor@v0.0.0-20220405222207-795f4f0139bb/pkg/gohacks

full build log, https://pipelines.actions.githubusercontent.com/serviceHosts/d065b819-d194-4baa-bc84-7b4a294d8693/_apis/pipelines/1/runs/564571/signedlogcontent/19?urlExpires=2023-02-03T17%3A06%3A38.0355252Z&urlSigningMethod=HMACV1&urlSignature=pSX%2FY%2FAHvb9NFrLSm1xQHLgwZ%2FwQ5NinBMs1z6lh5sI%3D

chenrui333 commented 10 months ago

relates to https://github.com/Homebrew/homebrew-core/pull/139431