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

bugfix: Prevent arborist from changing protocols as part of resolve step #5256

Closed

Conversation

Aeolun
Copy link

@Aeolun Aeolun commented Aug 4, 2022

This prevents arborist from changing URL's that are specified as git+https from being transformed into git+ssh regardless of whether or not authentication has been specified in the package.json.

We shouldn't try to guess what the user intended. If they specify either https or ssh then that's what will be used.

Details

This uses a fix roughly based on a suggestion by @denenr in #4305. I've also taken the liberty of cleaning up the humongous nested ternary statement.

Fixes #4305
Fixes #2610

@Aeolun Aeolun requested a review from a team as a code owner August 4, 2022 03:32
@Aeolun Aeolun force-pushed the bugfix/use-specified-resolution-protocol branch from 7bd8fc5 to d7b405a Compare August 4, 2022 04:03
@Aeolun Aeolun closed this Aug 4, 2022
@Aeolun
Copy link
Author

Aeolun commented Aug 4, 2022

This doesn't actually work. I will resubmit when I know what the issue is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant