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

Support wwwauth[] key in git credential helper #570

Merged
merged 2 commits into from
Aug 30, 2024
Merged

Conversation

joshwlewis
Copy link
Member

@joshwlewis joshwlewis commented Aug 30, 2024

Developers using Heroku-24 and GO_GIT_CRED_* are seeing errors in their build logs like these:

Unsupported key: wwwauth[]=Basic realm

The wwwauth[] key/value pair is a new addition to the git credential API here: git/git@5f2117b. It was included in git versions 2.41.0 and later. Heroku-22 and prior didn't have this issue, since it uses git 2.34.1. Heroku-24 is using git 2.43.0, so the issue manifests there.

The key and values are informational only according to this: https://github.com/git/git/blob/master/Documentation/git-credential.txt#L241-L250.

This PR adds a condition to ignore wwwauth[].

@joshwlewis joshwlewis marked this pull request as ready for review August 30, 2024 15:50
@joshwlewis joshwlewis requested a review from a team as a code owner August 30, 2024 15:50
Copy link
Member

@edmorley edmorley left a comment

Choose a reason for hiding this comment

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

Thank you :-)

@joshwlewis joshwlewis merged commit 8f2a960 into main Aug 30, 2024
5 checks passed
@joshwlewis joshwlewis deleted the jwl/git-wwwauth branch August 30, 2024 16:46
This was referenced Aug 30, 2024
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