klzgrad / naiveproxy

Make a fortune quietly
BSD 3-Clause "New" or "Revised" License
6.41k stars 878 forks source link

这个是什么问题 ~/go/bin/xcaddy build --with github.com/caddyserver/forwardproxy@caddy2=github.com/klzgrad/forwardproxy@naive 运行这个命令的报错 #634

Closed zzduci closed 3 months ago

zzduci commented 3 months ago

go: added golang.org/x/mod v0.11.0 go: added golang.org/x/net v0.17.0 go: added golang.org/x/sys v0.14.0 go: added golang.org/x/term v0.13.0 go: added golang.org/x/text v0.13.0 go: added golang.org/x/tools v0.10.0 go: added google.golang.org/protobuf v1.31.0 2024/03/30 04:55:08 [INFO] exec (timeout=0s): /usr/bin/go get -d -v
go: downloading github.com/klauspost/compress v1.17.0 caddy imports github.com/caddyserver/caddy/v2/modules/standard imports github.com/caddyserver/caddy/v2/modules/caddyhttp/standard imports github.com/caddyserver/caddy/v2/modules/caddyhttp/encode/gzip imports github.com/klauspost/compress/gzip: github.com/klauspost/compress@v1.17.0: reading https://proxy.golang.org/github.com/klauspost/compress/@v/v1.17.0.zip: 403 Forbidden caddy imports github.com/caddyserver/caddy/v2/modules/standard imports github.com/caddyserver/caddy/v2/modules/caddyhttp/standard imports github.com/caddyserver/caddy/v2/modules/caddyhttp/encode/zstd imports github.com/klauspost/compress/zstd: github.com/klauspost/compress@v1.17.0: reading https://proxy.golang.org/github.com/klauspost/compress/@v/v1.17.0.zip: 403 Forbidden caddy imports github.com/caddyserver/caddy/v2/modules/standard imports github.com/caddyserver/caddy/v2/modules/caddypki/acmeserver imports github.com/smallstep/certificates/acme imports github.com/smallstep/go-attestation/attest imports github.com/google/go-tpm/legacy/tpm2/credactivation imports crypto/ecdh: package crypto/ecdh is not in GOROOT (/usr/lib/go-1.19/src/crypto/ecdh) 2024/03/30 04:55:22 [FATAL] exit status 1

klzgrad commented 3 months ago

https://github.com/klzgrad/naiveproxy/commit/2a2ff37f5201ea4bbda29413998f736edb296a16

zzduci commented 3 months ago

2a2ff37

没有明白是怎么解决这个问题

zzduci commented 3 months ago

2a2ff37

可以详细一点吗,谢谢

zedifen commented 3 months ago

@zzduci The forwardproxy changed their main branch several months ago, so did the naiveproxy's fork. However, it seems that the build instructions on project's README are outdated. It's fixed now via the commit mentioned by the author. Run the updated command again to see if things works.

zzduci commented 3 months ago

@zzduci The forwardproxy changed their main branch several months ago, so did the naiveproxy's fork. However, it seems that the build instructions on project's README are outdated. It's fixed now via the commit mentioned by the author. Run the updated command again to see if things works.

thanks for your help,you are a kind man,i try another way ,it is working now