Skip to content

Conversation

@kevinburke
Copy link

Attempting to run "npm install" on a new-ish Mac with Node v10.11
fails with a number of node-gyp compilation failures. Installing and
using the latest versions of node-sass, nan, and fsevents resolves
this failure, as each of those packages resolves the issues that led
to problems.

I am nervous about the number of changes to package-lock.json and I am
not sure how to mitigate that.

@jsf-clabot
Copy link

jsf-clabot commented Oct 4, 2018

CLA assistant check
All committers have signed the CLA.

@kevinburke
Copy link
Author

Just signed

@codecov
Copy link

codecov bot commented Oct 4, 2018

Codecov Report

Merging #34 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@         Coverage Diff          @@
##           master   #34   +/-   ##
====================================
  Coverage       0%    0%           
====================================
  Files           7     7           
  Lines         372   372           
  Branches       66    66           
====================================
  Misses        325   325           
  Partials       47    47

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c3366d6...477c12e. Read the comment docs.

package.json Outdated
"eslint-config-webpack": "^1.2.1",
"eslint-plugin-import": "^2.2.0",
"extract-text-webpack-plugin": "^3.0.0",
"fsevents": "^1.2.4",
Copy link
Author

Choose a reason for hiding this comment

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

Previously we hadn't depended explicitly on this or nan but I had to specify them to get the right versions installed.

Attempting to run "npm install" on a new-ish Mac with Node v10.11
fails with a number of node-gyp compilation failures. Installing and
using the latest versions of node-sass, nan, and fsevents resolves
this failure, as each of those packages resolves the issues that led
to problems.

Update lodash to v4.17.11 to fix a security warning present in the
Travis CI configuration.

Add Node 10 to the build matrix so we can test for it.

I am nervous about the number of changes to package-lock.json and I am
not sure how to mitigate that - apparently NPM 6 changed the way
requirements are stored in the file so we'll just have to do this at
some point. npm/npm#20434
kevinburke added a commit to sourcegraph/sourcegraph-public-snapshot that referenced this pull request Oct 5, 2018
The thread-loader package starts several subprocesses. When you send
a SIGINT to thread-loader, the subprocesses terminate, but the parent
process hangs while waiting for them to send data. We were not
listening for the 'end' event in the parent process which meant that
the webpack processes would just hang forever.

This is a problem because this blocks the shutdown of goreman which
means we can have orphan processes and is, in general, a huge hassle
when developing the codebase locally.

Fix this by listening for an 'end' event, which means we can signal to
Webpack that the job terminated with an error, instead of not
terminating. This means that SIGINT will actually shut down the
process instead of leaving it hanging forever.

Fixes sourcegraph/sourcegraph#186.
Updates webpack/thread-loader#33.
Updates webpack/thread-loader#34.
Updates webpack/thread-loader#35.
Updates webpack/thread-loader#36.
@mistic
Copy link
Collaborator

mistic commented Dec 14, 2018

@evilebottnawi I think we can close this PR in favor of #36 as the same changes are being applied in the referenced PR, or we can merge it before merging the referenced one!

@alexander-akait
Copy link
Member

Close in favor #36

@kevinburke kevinburke deleted the update-nan branch December 14, 2018 11:04
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.

4 participants