-
Notifications
You must be signed in to change notification settings - Fork 17.3k
Use apm@1.12.2 with Node v4 and npm v3 \o/ #11897
Conversation
As a side note, this is the first time this build is being run on GitHub's internal CI server, which has given us issues with this type of upgrade in the past — so I will probably spend a significant amount of energy (and possibly time) getting that working. |
In my experience it's worked, as it properly removed |
I get a build error when trying to build this branch on Windows 10. I can build master without error. |
@Ben3eeE Did you run |
Been running this for a few hours on OS X 10.11, and haven't noticed any regressions yet. |
Ok, I get the same errors as @Ben3eeE while attempting to build on a brand-new laptop (so no Atom previously installed). |
Perhaps this line should be (Also it would be great if the edit: |
Yes I did script/clean before. Full list of commands I ran are in cmd log i uploaded. Included all from switching branch to error. |
Solved it:
@echo off
setlocal
if exist "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0/../lib/cli.js" %*
) else (
node.exe "%~dp0/../lib/cli.js" %*
)
Obviously this is a hacky solution, but setting |
So after fixing the node-gyp issues and finishing the build process I ended up facing #10819 😦. I also tried building on an Ubuntu 16.04 64-bit VM but got the same error as in https://travis-ci.org/atom/atom/jobs/135187713 which seems to be related to x64 compatibility. |
I'm hitting the same issue in the ARM builds issue (#7822). I finally tracked the problem down to nodegit/nodegit#1026. In short, NodeGit needs to publish their newest release: nodegit/nodegit#1044 (comment) |
Ok, managed to fix the node-gyp issue with atom/apm#571. Now it's failing when trying to install Nodegit 0.13.1. Apparently it can't find Retrying seems to have fixed it, but I'm not sure if it just skipped pre-gyp because it assumed that Nodegit installed properly, if it was a one-time thing, or if something else went wrong. I'll try again tomorrow. Unfortunately now I'm stuck at a edit: Now I'm getting 403 errors trying to download Nodegit... |
The build servers are showing this error;
|
Signed-off-by: Katrina Uychaco <kuychaco@github.com>
d7f7912
to
bae3409
Compare
bae3409
to
e67ebf3
Compare
Aside from Travis timing out (which we're going to solve by switching to CircleCI, #12207), I think this is ready to 🚢. @nathansobo @BinaryMuse: what do you think? 👀 💭 |
Unfortunately, we've found a problem where apm is unable to require files out of Atom's ASAR bundle. This wasn't an issue for building Atom since apm uses an unpacked resource path in that case, but it is an issue for installing packages with a built version of Atom. Going to roll this back, fix the issue, and try again. 😢 |
@nathansobo You may want to take a look at this PR: electron/asar-require#2 May be related. |
❤️ Thanks for the heads up @elprans. |
This bumps apm to 1.11.1, which includes atom/apm#562 and atom/apm#563. Since npm 3 flattens packages by default, the build had to change relatively significantly, and I'm sure there are more edge cases to track down. This also bumps Atom's own npm to 3.9.5.
Of particular note, I removed the
apm clean
command that runs as part of the build. It didn't seem to be working in the first place, and seems to have trouble with npm 3's package flattening; maybe we can delegate tonpm prune
here. Since published builds get built from scratch, I think this is probably not a huge deal.@atom/core, @atom/feedback, @damieng, I would love for you to pull down this branch and try to build Atom and make sure it runs correctly and that package-related operations work. It's extremely likely you will have to run
script/clean
first; sorry, things are just too different.Fixes #5109
Makes #7822 (more) possible
Probably a bunch of others too