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

Fallback to host-provided git on clone failure during package create #471

Merged
merged 5 commits into from
May 2, 2022

Conversation

jeff-mccoy
Copy link
Contributor

@jeff-mccoy jeff-mccoy commented May 2, 2022

Description

This PR allows for graceful failure on various go-git cloning issues related to authentication, git protocol, etc during the zarf package create execution. On a clone failure, the git package will attempt to call the host-based git clone before completely failing. Note that due to the format of Azure http git clone urls, this command will not support single-tag/single-depth clones in this PR.

Related Issue

Related to #456
Fixes #417

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist before merging

  • Tests included via the addition of the new test case in the gitops example

@jeff-mccoy jeff-mccoy added packager bug 🐞 Something isn't working enhancement ✨ New feature or request labels May 2, 2022
@jeff-mccoy jeff-mccoy added this to the Zarf GA milestone May 2, 2022
@jeff-mccoy
Copy link
Contributor Author

Successful clone via fallback:
Screen Shot 2022-05-02 at 12 14 22 AM

Failed clone (invalid git url) via fallback:
Screen Shot 2022-05-02 at 12 14 46 AM

@jeff-mccoy jeff-mccoy requested a review from YrrepNoj May 2, 2022 05:26
@jeff-mccoy jeff-mccoy enabled auto-merge (squash) May 2, 2022 18:27
Copy link
Contributor

@YrrepNoj YrrepNoj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just request one extra debug statement.

src/internal/git/pull.go Show resolved Hide resolved
@jeff-mccoy jeff-mccoy merged commit 612346e into master May 2, 2022
@jeff-mccoy jeff-mccoy deleted the feat/host-git-fallback-for-azure branch May 2, 2022 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working enhancement ✨ New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Azure DevOps repos support
2 participants