klauspost / compress

Optimized Go Compression Packages
Other
4.68k stars 311 forks source link

Permission issue on v1.15.15.zip #822

Closed houmie closed 1 year ago

houmie commented 1 year ago

Hello,

I'm not sure if this is a problem with your repo or not.

When compiling the plugin caddy-trojan with xcaddy, it tries to pull your compress from the repo, but it fails with 403 forbidden. Is this a permission issue from your side?

xcaddy build --with github.com/mastercactapus/caddy2-proxyprotocol --with github.com/imgk/caddy-trojan --with github.com/WeidiDeng/caddy-cloudflare-ip --with github.com/caddy-dns/cloudflare --output /usr/bin/caddy

Error:

github.com/imgk/caddy-trojan imports
    github.com/imgk/caddy-trojan/app imports
    github.com/caddyserver/caddy/v2/caddyconfig/httpcaddyfile imports
    github.com/caddyserver/caddy/v2/modules/caddypki imports
    github.com/smallstep/certificates/authority imports
    github.com/smallstep/nosql imports
    github.com/smallstep/nosql/badger/v2 imports
    github.com/dgraph-io/badger/v2 imports
    github.com/dgraph-io/badger/v2/y imports
    github.com/klauspost/compress/zstd: github.com/klauspost/compress@v1.15.15: reading https://proxy.golang.org/github.com/klauspost/compress/@v/v1.15.15.zip: 403 Forbidden
2023/06/06 10:44:30 [FATAL] exit status 1

Thanks

klauspost commented 1 year ago

Your issue is with the proxy.

I use GOPROXY=https://goproxy.io,https://goproxy.dev,direct - but you can use whatever you'd like.

houmie commented 1 year ago

Thank you!!! It worked. But it is VERY slow. (Still downloading after 5 min)

I have added this line to /etc/profile and sourced it afterwards.

export GOPROXY=https://goproxy.io,https://goproxy.dev,direct

I have no prior experience with Go, if there is a way to find faster proxies, please let me know.

klauspost commented 1 year ago

I don't really have any recommendations.