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

Feat: support git clone for imports #630

Open
mikemccracken opened this issue Jun 28, 2024 · 0 comments
Open

Feat: support git clone for imports #630

mikemccracken opened this issue Jun 28, 2024 · 0 comments

Comments

@mikemccracken
Copy link
Contributor

Is your feature request related to a problem? Please describe.

for build containers, it is common to have the run script clone some git repo, sometimes from an external source.
Usually this is followed by checking out a specific commit or tag, to avoid having things change out form under your builds.

It might be a good idea to also check the hash of the resulting HEAD commit against what is expected, to avoid cases where tags move due to mistakes or malice.

Describe the solution you'd like

This can be done in the script easily enough, but it might be nice to provide this in stacker itself with something like this:

imports:
  - repo: https://github.com/left-pad/left-pad
    tag: 1.0-rc12-not-owned
    commit: d3adb33f

of course you only really need the commit, but the tag is useful for documentation

this would result in a clone at /stacker/imports/left-pad at the beginning of the run script.

Describe alternatives you've considered

No response

Additional context

No response

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