Giter Club home page Giter Club logo

Comments (6)

cf-gitbot avatar cf-gitbot commented on July 28, 2024

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.

chhhavi avatar chhhavi commented on July 28, 2024

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.

sclevine avatar sclevine commented on July 28, 2024

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.

shanks3012 avatar shanks3012 commented on July 28, 2024

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.

tillyt avatar tillyt commented on July 28, 2024

Closing for now as a workaround was given. Definitely reopen if still an issue!

from go-mod-vendor.

prima101112 avatar prima101112 commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.