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

fix(manifest): Better handling of Git and GitHub artifacts #528

Open
wants to merge 2 commits into
base: staging
Choose a base branch
from

Conversation

nderjung
Copy link
Member

@nderjung nderjung commented Jun 20, 2023

Prerequisite checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Ran make fmt on your commit series before opening this PR;
  • Updated relevant documentation.

Description of changes

This PR makes necessary adjustments to the manifest package to better accommodate for users who wish to specify the Git SHA hash as the version attribute of a component. To make this adjustment a number of changes were necessary:

  • Propagating the Catalog's query of a version to each provider;
  • Allowing a quick-lookup of SHA on GitHub as an archive if --use-git is not provided;
  • Changing the "git checkout" mechanism to facilitate finding the hash amongst different branches.

This commit makes necessary adjustments to the `manifest` package to
accommodate for users who wish to specify the Git SHA hash as the
`version` attribute of a component.  To make this adjustment a number of
changes was necessary:

- Propagating the Catalog's query of a version to each provider;
- Allowing a quick-lookup of SHA on GitHub as an archive if `--use-git`
  is not provided;
- Changing the "`git checkout`" mechanism to facilitate finding the hash
  amongst different branches.

Signed-off-by: Alexander Jung <[email protected]>
@nderjung nderjung added kind/fix This PR fixes an issue or bug area/manifest Issue or PR is related to the manifest labels Jun 20, 2023
@craciunoiuc craciunoiuc self-requested a review June 22, 2023 12:03
@craciunoiuc
Copy link
Member

Still does not work with GitHub artifacts over ssh :(

@craciunoiuc
Copy link
Member

@nderjung I think this is the reason why you remember git SHAs working. Can you rebase this and we try it on staging?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/manifest Issue or PR is related to the manifest kind/fix This PR fixes an issue or bug
Projects
Status: 🧊 Icebox
Development

Successfully merging this pull request may close these issues.

None yet

2 participants