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 Git client for public repos #6

Merged
merged 1 commit into from
Sep 19, 2023
Merged

🐛 Fix Git client for public repos #6

merged 1 commit into from
Sep 19, 2023

Conversation

janiskemper
Copy link
Member

What this PR does / why we need it:
Two bugs happen with public repos and no git token set:

  • isPrivateRepo does not work as an error is returned if the git client was not successfully built. This commit replaces the utility function.
  • there was no handling of redirects that Github API gives us for downloading release assets in the case of public repos. This commit adds it.

TODOs:

  • squash commits
  • include documentation
  • add unit tests

Two bugs happen with public repos and no git token set:
- isPrivateRepo does not work as an error is returned if the git client
  was not successfully built. This commit replaces the utility function.
- there was no handling of redirects that Github API gives us for
  downloading release assets in the case of public repos. This commit
adds it.

Signed-off-by: janiskemper <[email protected]>
@batistein batistein merged commit f111200 into main Sep 19, 2023
5 checks passed
@batistein batistein deleted the fix-git-client branch September 19, 2023 16:51
janiskemper added a commit that referenced this pull request Nov 28, 2023
🌱 add version info to the binary via ldflags.
@jschoone jschoone added the Container Issues or pull requests relevant for Team 2: Container Infra and Tooling label Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Container Issues or pull requests relevant for Team 2: Container Infra and Tooling
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants