You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using goreleaser to publish on gitlab behind a proxy. But the goreleaser is not using the proxy to call the gitlab endpoint.
I'm exporting HTTP_PROXY, HTTPS_PROXY, http_proxy and https_proxy and it is not working.
Looking the code and using the --debug flag, I can saw that most of commands are executed directly in the "terminal", like docker and git. But when will update the description of release page, goreleaser is calling it using a custom http transport ( https://github.com/goreleaser/goreleaser/blob/master/internal/client/gitlab.go#L30 ).
Describe the bug
I'm using goreleaser to publish on gitlab behind a proxy. But the goreleaser is not using the proxy to call the gitlab endpoint.
I'm exporting
HTTP_PROXY
,HTTPS_PROXY
,http_proxy
andhttps_proxy
and it is not working.Looking the code and using the --debug flag, I can saw that most of commands are executed directly in the "terminal", like docker and git. But when will update the description of release page, goreleaser is calling it using a custom http transport ( https://github.com/goreleaser/goreleaser/blob/master/internal/client/gitlab.go#L30 ).
I think we need to use the
ProxyFromEnvironment
like the builtinDefaultTransport RoundTripper
. Please, see https://golang.org/src/net/http/transport.go#L42To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected that goreleaser uses the proxy to access external endpoints
Environment (please complete the following information):
linux
Linux runner-9by1bn8-project-21635938-concurrent-0d64t6 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64 Linux
Additional context
The text was updated successfully, but these errors were encountered: