Comments (6)
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/165888910
The labels on this github issue will be updated when the story is started.
from go-mod-vendor.
Hi @cmccarthy101,
Thanks for filing this issue. We don't currently support this behavior in the go-mod-cnb
and don't support this behavior in our go-buildpack
as well. If you have dependencies in private repositories, an option could be to vendor your packages.
from go-mod-vendor.
There's some discussion on slack about this:
https://buildpacks.slack.com/archives/C94UJCNV6/p1557344013277100
In general, build-time environment variables can be used to inject credentials (e.g., --env-file
with pack
), but in this case, git can't read creds from environment variables.
I think we have a few options:
- A
pack
feature that lets you inject an SSH key - A simple v3 buildpack that lets you inject an SSH key
- A simple v3 buildpack that creates a git credential helper from the environment (see the link above)
Regardless, not a feature that the go-mod-cnb should support directly.
from go-mod-vendor.
For now, we suggest that you vendor your modules as a workaround while we see abut prioritizing this feature. Let us know if this does is not possible for you. Thanks.
from go-mod-vendor.
Closing for now as a workaround was given. Definitely reopen if still an issue!
from go-mod-vendor.
Hi, kaniko are supporting injecting build vars (could be ssh key) that used in dockerfile. we using kaniko for now and try to make build more faster and easy for new service to onboard on our CI CD.
the question is, are pack will be able to do that? if its end up we build our own builder then whats different with creating our dockerfile cc @tillyt
from go-mod-vendor.
Related Issues (20)
- Use new io.paketo.stacks.tiny ID to indicate "tiny" HOT 3
- Rename to go-mod-vendor
- Cannot build vendored go mod apps HOT 1
- Don't create an empty `mod-cache` layer
- Support for using private go modules HOT 5
- Require Go version specified in go.mod as a minimum version
- Buildpack should run to set BP_GO_VERSION for go-dist buildpack HOT 1
- Should go-mod-vendor provide a dependency for downstream buildpacks? HOT 3
- Use GOMODCACHE environment variable instead of setting GOPATH
- SBOM generation includes all dependencies in working dir, not just Go ones. HOT 1
- Refactor proposal: simplify detect logic when go.mod file does not exist. HOT 1
- Failure: Go get update workflow HOT 1
- Failure: Create Draft Release workflow HOT 3
- `go mod graph` can run for a long time slowing down rebuilds HOT 1
- Failure: Approve bot PR workflow HOT 5
- Failure: Update GitHub config workflow HOT 1
- Discussion: go 1.21+ toolchain version
- Failure: Push Buildpackage workflow HOT 1
- Failure: Publish draft releases
- Go Proxy Configuration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-mod-vendor.