Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Upgrade Node.js to v4.0.0 #43714

Closed
wants to merge 1 commit into from
Closed

Upgrade Node.js to v4.0.0 #43714

wants to merge 1 commit into from

Conversation

joshmanders
Copy link

Today the Node.js team has released v4.0.0 so this formula takes from the io.js formula since v4.0.0 is coming from the io.js codebase.

https://nodejs.org/en/blog/release/v4.0.0/

@mmwtsn
Copy link

mmwtsn commented Sep 8, 2015

🎉

This fixes #43713

@Tonkpils Tonkpils mentioned this pull request Sep 8, 2015
@DomT4
Copy link
Member

DomT4 commented Sep 8, 2015

This should be applied to the iojs formula in the mean time, yes. The Node formula is remaining on the LTS 0.x.x releases until what was iojs no longer requires a patched npm to run. Likewise, because it requires a patched npm still it is unlikely we'll be adding npm support to formerly known as iojs at this point in time.

Added comment: #43716 (comment)

@joshmanders
Copy link
Author

Copying @DomT4's comment from #43716 (comment)

It is likely that the Node formula is going away, or rather being moved to homebrew/versions, and iojs will be renamed nodejs or similar - Once we have an npm that we can just fetch as a tarball and use the same stable mechanism we've been using in node for a long period now. This is not set in stone yet, by any means.

npm cannot live inside the Cellar path. We tried that before and the end result was incredibly troublesome. Unless that has changed and npm can now live in one place whilst installed modules live and persist somewhere else globally that won't be removed across updates/reinstalls/etc the position on that can't change.

Essentially, no npm that we cannot control the build location of can be used. On top of that if people install a different node version from versions the installation of the npm shipped with that formula should not break the main node-esque formula in the core. If people update or downgrade their npm version locally it should not break the node-esque formula.

Package managing another package manager (npm) is difficult and delicate, and we appreciate this is frustrating. We absolutely will move forwards as quickly as we can continue to provide stability to end users, and appreciate patience in that process.

@joshmanders
Copy link
Author

I never thought about that stuff, good thinking. I have this formula installing Node.js v4.0.0 right now and don't seem to see any real issues yet. I had stuff already installed globally from when I was using v0.12.7 and all those still seem to work.

@DomT4
Copy link
Member

DomT4 commented Sep 9, 2015

Please don't add thumbs to this conversation; It doesn't speed the process up & it ends up making tracking the various discussions less fun. It'll be merged when all parties involved are happy. Some extra discussion quoted by @killswitch is in #43716 and I'll reply to the latest point there at some point in the next few hours probably.

@DomT4 DomT4 mentioned this pull request Sep 9, 2015
@mourner
Copy link
Contributor

mourner commented Sep 9, 2015

Great points! Were they brought up to NPM maintainers in some public ticket? The team there is pretty nice and responsive. I'd love to see what they have to say on the issue.

@DomT4
Copy link
Member

DomT4 commented Sep 9, 2015

Left a comment in the other thread very early this morning along the lines of the blockers on this at the moment: #43716 (comment)

Were they brought up to NPM maintainers in some public ticket?

It was discussed heavily in various Homebrew tickets, including #3762, #22408, #27479, #28075 & #36369. Isaacs & Othiym23 have both had a lot of immensely valuable input that has been really useful to us in resolving various sticky points over the long-term.

We try to loop the npm team in on various discussions as obviously Homebrew has been a driver of issues to them in the past and an open relationship between the two teams helps reduce both our maintenance burdens.

sha256 "15689cc474a79975eaa6d791b24e6fa021494839c9b691ac307d74acefc5f834" => :yosemite
sha256 "a7a7d37c6e5088ed3f58b867d4d246851715d3a4f2f3b4b3c40cc7452ff6728c" => :mavericks
sha256 "374f3c5b576e4173590b8413e9941df121a84f46bd48161fc758e1f7d42e0402" => :mountain_lion
end
Copy link
Member

Choose a reason for hiding this comment

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

Leave the bottle-block as-is, it'll be updated when we pull.

@MikeMcQuaid
Copy link
Member

As a general comment: please don't move stuff around or change stuff in version bumps like this unless they are necessary for it to build (and in those cases: please let us know in the PR description). Otherwise there will be more back-and-forth and it'll take longer to get merged. Thanks!

@DomT4 DomT4 self-assigned this Sep 9, 2015
@joshmanders
Copy link
Author

@MikeMcQuaid understood. This is the first I've done with any formulas, I just wanted node v4 asap, so I copied the iojs formula and used it for node since node is now using iojs' codebase.

This works fine for me currently, but I have no issues in someone else taking this over who understands the underlining stuff better as @DomT4 pointed out.

@ninjasort
Copy link

Looking forward to this merge. Would love to get Node v4

@MikeMcQuaid
Copy link
Member

Just to let people know: we won't be merging this until we have a stable, unpatched npm release that supports NodeJS 4.0.0

@iffyuva
Copy link

iffyuva commented Sep 10, 2015

this is sad. is there any discussion thread about new unpatched npm release which we can follow?

@francip
Copy link

francip commented Sep 10, 2015

@MikeMcQuaid seems npm v2.14.3 will be able to support node v4 unpatched. The current npm in node v4 is v2.14.2, which still includes a single patch to make the node tests go green

@chrmoritz
Copy link
Contributor

@francip The patches you are looking for are nodejs/node@b8341e8 and nodejs/node@22097a2 which are bumping node-gyp to 3.0.0 and 3.0.1.

npm 2.14.4 (unstable until next week) was release today which officially bundles node-gyp 3.0.1. So we only have to wait one more week for a stable npm which is fully compatible with all possible Node.js release lines without a patch.

@joshmanders
Copy link
Author

Closing as a much better PR exists at #43973

@bcomnes
Copy link
Contributor

bcomnes commented Sep 16, 2015

In the meantime, we have a working node4 formula in this tap: https://github.com/aredridel/homebrew-iojs

@DomT4
Copy link
Member

DomT4 commented Sep 16, 2015

Thanks for the patience & understanding in this PR @killswitch; appreciate the willingness to work with us constructively.

@joshmanders
Copy link
Author

@DomT4 No problem. Thanks for the great work on homebrew. I'd go crazy without it.

@jeromedecoster
Copy link

@MikeMcQuaid node 4.1.0 is out today, including updated npm

@bcomnes
Copy link
Contributor

bcomnes commented Sep 17, 2015

@jeromedecoster we are waiting on npm@2.14.4 in #43973

@Homebrew Homebrew locked and limited conversation to collaborators Sep 17, 2015
@DomT4 DomT4 removed their assignment Sep 17, 2015
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.