Hello community! ๐
I'm having an issue when initializing a new Dagger module with the Python SDK.
Command executed:
dagger init --sdk python --name=hello-dagger
Problem encountered:
The process fails during code generation with multiple 403 Forbidden errors when downloading Go dependencies from proxy.golang.org.
Main error excerpts:
go: python-sdk imports
github.com/distribution/reference@v0.6.0: reading https://proxy.golang.org/github.com/distribution/reference/@v/v0.6.0.zip: 403 Forbidden
github.com/golang/protobuf@v1.5.4: reading https://proxy.golang.org/github.com/golang/protobuf/@v/v1.5.4.zip: 403 Forbidden
Important context:
I'm running a custom Dagger engine configuration with corporate proxy settings:
docker run --rm -d \
--name dagger-engine-custom \
--privileged \
-v /path/to/cacert.pem:/usr/local/share/ca-certificates/proxy.crt:ro \
-v /path/to/engine.toml:/etc/dagger/engine.toml \
-e HTTP_PROXY=http://host.docker.internal:3128 \
-e HTTPS_PROXY=http://host.docker.internal:3128 \
-e http_proxy=http://host.docker.internal:3128 \
-e https_proxy=http://host.docker.internal:3128 \
-e NO_PROXY="host.docker.internal,*.internal.corp,localhost,127.0.0.1" \
-e no_proxy="host.docker.internal,*.internal.corp,localhost,127.0.0.1" \
-e GOPROXY="https://go-proxy.internal.corp" \
-e GOSUMDB=off \
-e GOPRIVATE="*.internal.corp" \
-v /var/lib/dagger \
registry.dagger.io/engine:v0.18.12
It seems the codegen process might not be respecting the proxy configuration properly.
Questions:
- Has anyone successfully used Dagger with a corporate proxy setup?
- Is there additional configuration needed for the Go proxy settings to work during codegen?
- Any workarounds for this issue?
Thanks in advance for your help! ๐