Backports PR #9327
**Commit 1:**
build: remove deepModules hackery
The deepModules hacks in the build system were added to support the long
paths that resulted from npm2, but npm3 fundamentally addresses that
problem, so deepModules is no longer necessary. In practical terms, npm3
shouldn't ever cause path lengths to become so long that they trigger
path length problems on certain operating systems.
* Original sha: 19fcc93ad3
* Authored by Court Ewing <court@epixa.com> on 2016-12-02T00:13:13Z
Backports PR #7746
**Commit 1:**
fix#7136 - check SHA of downloaded node binaries
* Original sha: 955972b2b5
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-07-11T19:17:08Z
**Commit 2:**
only skipping download if --skip-download cli argument is present
* Original sha: 325e17245c
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-07T10:54:23Z
**Commit 3:**
updating log messages based on epixas comments
* Original sha: 20b5c4dca2
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-23T06:24:55Z
**Commit 4:**
updating based on courts review
* Original sha: 78c124c0ac
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-10-29T14:44:43Z
We do not release zip archives for any operating system except windows,
and we do not release tar.gz archives for windows. For consistency and
clarity sake, we'll explicitly list the architecture (x86) of the
windows build as well.
These changes are necessary for Kibana to be compatible with Elastic's
unified release process from 5.0 onward. The way artifacts get created
has not changed, but the naming conventions have.
The target directory is created by the archives task, but it is not
created by the ospackages task, so if you do not have a target
directory and try to skip archives, the build will fail.
The default behavior of the build task is to now apply the -snapshot
suffix dynamically rather than us manually hardcoding and managing it
within the source code itself. The `--release` flag will drop the
-snapshot suffix on a build, which should be used for any release
candidate.
The default behavior of the build task has also changed to create
rpm/deb packages as well. Since we've only confirmed that this works on
linux, you can override that behavior by passing `skip-os-packages`.
If you do not want to create any zip or tar.gz archives, you can pass
`--skip-archives`.