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: use TARGETARCH to select the git-credential-github-app artifact #2002

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

Meroje
Copy link
Contributor

@Meroje Meroje commented Nov 12, 2024

What is the problem I am trying to address?

Using the new github-app credential feature on arm isn't possible as the binary is forced to be x86_64.

How is the fix applied?

Using the docker automatic TARGETARCH arg to parameterize the download

What GitHub issue(s) does this PR fix or close?

n/a

@Meroje Meroje requested a review from a team as a code owner November 12, 2024 15:22
Copy link
Contributor

@nrwiersma nrwiersma left a comment

Choose a reason for hiding this comment

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

LGTM

@nrwiersma nrwiersma merged commit 1644083 into gomods:main Nov 12, 2024
11 checks passed
@Meroje Meroje deleted the fix/github-app-cred-arch branch November 13, 2024 08:53
@@ -44,7 +45,8 @@ RUN chmod 644 /config/config.toml
RUN apk add --update git git-lfs mercurial openssh-client subversion procps fossil tini

# Add git-credential-github-app for native integration with GitHub Apps
RUN wget -O git-credential-github-app.tar.gz https://github.com/bdellegrazie/git-credential-github-app/releases/download/v0.3.0/git-credential-github-app_v0.3.0_Linux_x86_64.tar.gz \
RUN if [ "${TARGETARCH}" = "arm64" ]; then ARCH="arm64"; else ARCH="amd64"; fi \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nrwiersma I'm sorry I messed up this one, should've been x86_64 in the second case

Copy link
Contributor

Choose a reason for hiding this comment

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

You can open a new PR, no stress. I should have caught this.

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

Successfully merging this pull request may close these issues.

2 participants