This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Add build env values#862
Merged
jasonrudolph merged 1 commit intoatom:masterfrom Aug 16, 2019
Aerijo:build-env
Merged
Conversation
Contributor
Author
|
Build failure appears unrelated |
Contributor
Author
|
Note the termination repro steps no longer work; it has now got prebuilt binaries for all current versions of Atom. |
|
I think this would also help packages that use |
Closed
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requirements
Description of the Change
Adds the build environment as environment variables. This is more robust than flags, as the process environment will normally be passed along, even if the installation script does not handle and pass the flags.
For example, see node-pty. It defines a custom install script, which does not pass any outer flags to node-gyp. It does use the default
process.envhowever.Alternate Designs
Could potentially remove the flags now, but I wanted to keep the impact minimal.
Benefits
If the build works, it's probably for the intended Atom version now.
Possible Drawbacks
na.
Verification Process
Successful terminal installation and use in relatively fresh Ubuntu 19.04 VM when installed with
apm-nightly install termination. Note a related bug may cause Atom to report the installed version as wrong. If this happens, first try deleting theinstalled-packages:termination:...entries inlocalstorageand reloading.Applicable Issues
I don't know anything about building on Windows, especially how
msvs_versionis used. While this PR does not harm Windows, it would be good for someone to confirm if more env variables need to be passed to support it.Edit: It worked on a Windows 10 VM too, where build tools were installed with
npm install -g windows-build-tools.Fixes #860