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: .npmrc settings not being passed to install/add command #26473

Merged
merged 5 commits into from
Oct 24, 2024

Conversation

marvinhagemeister
Copy link
Contributor

@marvinhagemeister marvinhagemeister commented Oct 22, 2024

We weren't passing the resolved npmrc settings to the install commands. This lead us to always fall back to the default registry url instead of using the one from npmrc.

Fixes #26139
Fixes #26033
Fixes #25924
Fixes #25822
Fixes #26152

@marvinhagemeister marvinhagemeister changed the title fix: npmrc settings not being passed to install/add command fix: .npmrc settings not being passed to install/add command Oct 22, 2024
@marvinhagemeister
Copy link
Contributor Author

Need to debug the tests later today. We do have tests for this, but they were passing even without the fix.

@marvinhagemeister
Copy link
Contributor Author

We spotted the root cause for that and it will require a bit of refactoring to properly address it.

@bartlomieju bartlomieju marked this pull request as ready for review October 24, 2024 12:36
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

Gonna land as is and clean up the code in a follow up PR since there's a lot of users waiting for the fix.

@bartlomieju bartlomieju merged commit 5f0bb3c into main Oct 24, 2024
17 checks passed
@bartlomieju bartlomieju deleted the fix-npmrc-install branch October 24, 2024 18:03
bartlomieju added a commit that referenced this pull request Oct 25, 2024
We weren't passing the resolved npmrc settings to the install commands.
This lead us to always fall back to the default registry url instead of
using the one from npmrc.

Fixes #26139
Fixes #26033
Fixes #25924
Fixes #25822
Fixes #26152

---------

Co-authored-by: Bartek Iwańczuk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants