-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Adds iojs formula meeting requests by @mikemcquaid #36193
Conversation
class Iojs < Formula | ||
homepage "https://iojs.org/" | ||
url "https://iojs.org/dist/v1.0.4/iojs-v1.0.4.tar.xz" | ||
version "1.0.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be redundant from the url
. If it is, it should show up under brew audit
.
Can't comment on what the maintainers want here, but aside the few tiny nits I highlighted, the submission itself is great in terms of style, thanks :) |
|
||
To intall `npm` and have it use `iojs`, install `node` and add | ||
iojs to the front of your path: | ||
export PATH=#{HOMEBREW_PREFIX}/opt/iojs/bin:$PATH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potentially export PATH=#{Formula["iojs"].opt_bin}:$PATH
:)
Thanks @DomT4, all good points fixing now. |
Thanks for the quick fixes, Appreciate that a lot! |
|
||
depends_on :python => :build | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blank line here needs to be removed. Otherwise, Bot reports all is good.
==> brew audit iojs --strict FAILED
==> brew style iojs
== /usr/local/Library/Formula/iojs.rb ==
C: 12: 1: Extra blank line detected.
1 file inspected, 1 offense detected
Should this have a |
It'd have to be a |
Thanks all. Good to get this in; Appreciate the sheer amount of work everyone poured into it. |
Note that that we are currently patching npm released in io.js to properly download source (headers) for native addon compiles. The general npm distribution won't do this properly and therefore won't compile any native addons. We are working on a fix for this but it's not there yet. |
e.g. try |
@rvagg This isn't using the npm provided in iojs. |
that's my point |
@rvagg Sorry, I'm not sure how we're expected to resolve this? Should I just revoke this formula until you say it's ready to be used with an unpatched |
@rvagg Also, did I miss in the previous PR where someone had mentioned this? |
just pointing it out, that's all, #35853 has appropriately set my expectations about resolutions |
@rvagg That's not helpful; I'm doing my best to try and get your software working in Homebrew. From that PR:
@rvagg Did you not think it might be worth correcting these statements before this got merged? Might have been more productive than tweeting about bikeshedding. If you're not interested in helping me work out a solution to this then I'm going to revoke |
It seems like the question now becomes, is there a single |
npm runs equally well on both; if a user changes which 'node' runs (be it version or switching between iojs and node) then binary addons will need to be rebuilt by |
@aredridel thats what I thought to but this was just clarified:
So it seems there are differences between the versions of npm distributed between node and iojs Also, I believe having the current formula is progress, and it works to some degree with the non-patched npm version, although it will be critical to find a fully compatible solution. Looking for a simple solution. |
To clarify whats going on:
iojs npm isn't whats patched, the node-gyp dependency is, and this patch has been submitted upstream nodejs/node-gyp#564 Here is the forked node-gyp: https://github.com/iojs/io.js/tree/v1.x/deps/npm/bin/node-gyp-bin Next questions: Is it possible to apply that patch to npm's node-gyp? Or would that break compatibility with node? |
@bcomnes I'd rather hold off until that PR is merged and we've got a new |
Seems fair. I'll probe around and keep an ear out. |
I know there are some existing PRs, but this one tries to meet all the requests made in #35853 (comment)
This will probably need editing for message style. Apologies if this isn't what the maintainers are currently looking for.