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-resolver): wrong scheme to git ls-remote #6806

Merged
merged 7 commits into from Jul 17, 2023
Merged

Conversation

KSXGitHub
Copy link
Contributor

fixes #6805

@KSXGitHub KSXGitHub requested a review from zkochan as a code owner July 14, 2023 10:19
Comment on lines 415 to 421
expect(resolveResult).toStrictEqual({
id: '0000000000000000000000000000000000000000+x-oauth-basic@github.com/foo/bar/0000000000000000000000000000000000000000',
normalizedPref: 'git+https://0000000000000000000000000000000000000000:x-oauth-basic@github.com/foo/bar.git',
normalizedPref: 'github:foo/bar',
resolution: {
commit: '0000000000000000000000000000000000000000',
repo: 'https://0000000000000000000000000000000000000000:x-oauth-basic@github.com/foo/bar.git',
type: 'git',
tarball: 'https://codeload.github.com/foo/bar/tar.gz/0000000000000000000000000000000000000000',
},
resolvedVia: 'git-repository',
Copy link
Member

Choose a reason for hiding this comment

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

but where is the auth token? This test is about a private git-hosted dependency that can only be downloaded with an auth token. But you have removed the auth token from the resolveResult.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixing this bug involved more than I had imagine, I'll look into this next week.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zkochan It was HostedGit.shortcut() that removed the auth token.

@KSXGitHub KSXGitHub requested a review from zkochan July 17, 2023 05:46
@zkochan zkochan merged commit 6fe0b60 into main Jul 17, 2023
13 checks passed
@zkochan zkochan deleted the wrong-git-scheme-6805 branch July 17, 2023 08:40
zkochan pushed a commit that referenced this pull request Jul 17, 2023
zkochan added a commit that referenced this pull request Jul 18, 2023
zkochan added a commit that referenced this pull request Jul 18, 2023
@zkochan zkochan mentioned this pull request Sep 12, 2023
4 tasks
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.

Host key verification failed
2 participants