Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go Proxy Configuration #684

Closed
bradfordwagner opened this issue Jun 17, 2024 · 1 comment
Closed

Go Proxy Configuration #684

bradfordwagner opened this issue Jun 17, 2024 · 1 comment

Comments

@bradfordwagner
Copy link

In a corporate setting we use Artifactory to as a pull through for go packages. In order for it to work GOPROXY, GONOPROXY, GOSUMDB, GONOSUMDB, and GOPRIVATE need to be configurable.

Describe the Enhancement

Set GOPROXY, GONOPROXY, GOSUMDB, GONOSUMDB, and GOPRIVATE in a build pipeline/locally and run pack build image with the env variables seamlessly passing to go mod vendor.

Possible Solution

Motivation

In a corporate setting network requests can be man-in-the-middled by security software. Requests for go packages need to use go_proxy

@bradfordwagner bradfordwagner changed the title Allow for Go Proxy Configuration Go Proxy Configuration Jun 18, 2024
@bradfordwagner
Copy link
Author

bradfordwagner commented Jun 20, 2024

Using pack build -e GOPROXY=... solved this
You can also bake it into project.toml if you want: https://github.com/buildpacks/spec/blob/main/extensions/project-descriptor.md#iobuildpacksbuildenv-optional

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant