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
Conversation
resolving/git-resolver/test/index.ts
Outdated
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', |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
fixes #6805