Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Prevent unnecessary native module rebuilding #808

Merged
merged 6 commits into from
Aug 8, 2018
Merged

Conversation

smashwilson
Copy link
Contributor

When the system's host node has the same native module version as the downloaded one, don't rebuild native modules in the postinstall script. This should keep us from building libgit2 and oniguruma twice on every install. ✌️

Also: optionally disable automatic npm deduplication during postinstall by setting a NO_APM_DEDUPE environment variable. I doubt we'll be able to get away with this in our real builds because of the Windows pathlength thing, but it'll help me narrow down the cause of build failures in atom/atom#17803.

Copy link
Contributor

@daviwil daviwil left a comment

Choose a reason for hiding this comment

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

Looks great, love it!

@smashwilson
Copy link
Contributor Author

Well... NO_APM_DEDUPE doesn't seem to actually help, unfortunately. But it shouldn't hurt anything, at least?

@smashwilson smashwilson merged commit 1042190 into master Aug 8, 2018
@smashwilson smashwilson deleted the aw/turn-off-dedupe branch August 8, 2018 16:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants