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: Use config.mirror first before env variables for download URL #106

Merged
merged 3 commits into from
Mar 14, 2024
Merged

fix: Use config.mirror first before env variables for download URL #106

merged 3 commits into from
Mar 14, 2024

Conversation

theogravity
Copy link
Contributor

@theogravity theogravity commented Feb 29, 2024

This addresses an issue around download URL calculation as discovered in electron-userland/electron-builder#6445 (comment)

It doesn't make sense that we look at the env variables first before user-configured values. It took me hours to troubleshoot why my custom electron binary url wasn't taking when using the mirror configuration option and realized through console logging various packages that my env var has NPM_CONFIG_ELECTRON_MIRROR set.

This PR re-orders how the URL is calculated by first checking the config.Mirror option first before the env vars.

@mmaietta mmaietta merged commit d91c632 into develar:master Mar 14, 2024
2 checks passed
@theogravity theogravity deleted the reorder-config-list branch March 14, 2024 22:56
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.

2 participants