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(config): Don't override registry with undefined by default #4643

Merged
merged 1 commit into from
Oct 6, 2017

Conversation

BYK
Copy link
Member

@BYK BYK commented Oct 5, 2017

Summary

Follow up to #4238. We were always passing the registry key in
registry overrides but its value was undefined when an override
was not in place. Object.assign doesn't care about that though
so we were overriding the registry all the time, mostly with
undefined.

Test plan

Added new test case.

**Summary**

Follow up to #4238. We were always passing the `registry` key in
registry overrides but its value was `undefined` when an override
was not in place. `Object.assign` doesn't care about that though
so we were overriding the registry all the time, mostly with
`undefined`.

**Test plan**

Added new test case.
Copy link
Contributor

@rally25rs rally25rs left a comment

Choose a reason for hiding this comment

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

Thanks for getting this fixed up 👍

@BYK
Copy link
Member Author

BYK commented Oct 6, 2017

@rally25rs thanks a lot for reporting it! (and finding the root cause)

@arcanis arcanis merged commit 69004e9 into master Oct 6, 2017
joaolucasl pushed a commit to joaolucasl/yarn that referenced this pull request Oct 27, 2017
…npkg#4643)

**Summary**

Follow up to yarnpkg#4238. We were always passing the `registry` key in
registry overrides but its value was `undefined` when an override
was not in place. `Object.assign` doesn't care about that though
so we were overriding the registry all the time, mostly with
`undefined`.

**Test plan**

Added new test case.
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.

None yet

3 participants