Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prep & tests in prep for node v12 #4240

Closed
ErisDS opened this issue Oct 6, 2014 · 15 comments
Closed

Prep & tests in prep for node v12 #4240

ErisDS opened this issue Oct 6, 2014 · 15 comments
Assignees
Milestone

Comments

@ErisDS
Copy link
Member

ErisDS commented Oct 6, 2014

Node v12 has been on the horizon for a while and looming closer, and there has been much talk of getting Ghost ready for it - so let's do it!

Ghost's node version support is loosely tied to that of node-sqlite3 and they have had support for node >= 0.11.13 for some time.

I suggest that we add tests for the most recent version of v11 (0.11.14), test out some of the more complex features that aren't yet covered by our tests, and if everything is a-ok, add 0.11.14+ to the supported engines in the package.json file.

I know that @jaswilli has done some of this already, so will let him call first dibs 😉.

@ErisDS ErisDS added the tests label Oct 6, 2014
@ErisDS ErisDS added this to the 0.5.x Backlog milestone Oct 6, 2014
@jaswilli jaswilli self-assigned this Oct 8, 2014
@jaswilli
Copy link
Contributor

jaswilli commented Nov 1, 2014

0.11.14 support is currently blocked on:

TryGhost/node-sqlite3#352 and Rowno/grunt-mocha-cli#24

@springmeyer
Copy link

It is generally unrealistic to support binaries for node-sqlite for uneven/unstable node.js versions. I've provided node v0.11.x binaries for node-sqlite3 as an experiment more than a solution - more details (and options you can reflect on) at TryGhost/node-sqlite3#352 (comment)

@jaswilli
Copy link
Contributor

jaswilli commented Nov 9, 2014

Hey @springmeyer ,

I appreciate you stopping by. I'm just using this issue to track how Ghost is doing against node v0.11 as 0.12-release gets closer and closer so we can stay on top of any problems in order to make the transition as easy as possible.

We actually don't even allow Ghost to run on node 0.11.x at all. If node-sqlite3 was actually broken I'd be concerned but just having the bindings broken because of an ABI change is a complete non-issue since I can just compile them on my own in order to do testing.

@springmeyer
Copy link

@jaswilli - sounds good, thanks for the details. In the meantime I am going to move on mapbox/node-pre-gyp#124. I think if we version binaries on major.minor.patch then it is realistic to ship them to users. This puts more burden on the developer packaging binaries, but I'm up for it in this case because I too hope node v0.12.x is close?

@jaswilli
Copy link
Contributor

@springmeyer As always, who knows for sure but I stumbled on this: nodejs/node-v0.x-archive#7784 (comment) last week which implies that it could be really soon.

@ScottSmith95
Copy link

Ghost currently breaks on 0.12. Considering that this is now the main release version of Node, Ghost now breaks on fresh installs of Node. Sqlite seems to be part of the reason behind this incompatibility.

@jaswilli
Copy link
Contributor

Hi @ScottSmith95 ,

There will be a little time in between a major version release and packages catching up to support it, especially in the case where native binaries are involved (like the sqlite3 package).

Once our downstream dependencies have a chance to sort things out, we'll do the same and see where we're at. I don't expect 0.12 support to pose any major problems though.

@gazpachu
Copy link

Yes, this is a really important issue. I suggest displaying a very clear warning message in the Github repo and download page saying that Ghost is not compatible with Node.js v.0.12 and an approximate date of when it will be. That might help reduce the frustration of people trying to make Ghost work for the first time

@jellyfangs
Copy link

I've been struggling to get Ghost setup and it keeps getting stuck at sqlite3 install. My node is v0.12.0 and npm is v2.5.1, would this be related? If I roll back to v0.10.x it'll be alright?

@ScottSmith95
Copy link

Yep. Ghost only runs on 0.10 at the moment.

@jellyfangs
Copy link

So starts my journey to isolate node in its own environment

@springmeyer
Copy link

node-sqlite3@3.0.5 works great on node v0.12.x (https://github.com/mapbox/node-sqlite3/releases/tag/v3.0.5). So ghost can and should upgrade to this release. /cc @ErisDS @jaswilli

@springmeyer
Copy link

@jellyfangs
Copy link

I updated my package.json and npm-shrinkwrap.json to node@0.12.0 and node-sqlite3@3.0.5 but now getting stuck at node-sass@1.2.3 breaking on install.

EDIT: As you were, updated to grunt-sass@0.18.0 and all is well

halfdan added a commit to halfdan/Ghost that referenced this issue Mar 9, 2015
closes TryGhost#4811, refs TryGhost#4240
- Bump sqlite3 dependency to 3.0.5
- Add node 0.12 and io.js build
ErisDS pushed a commit to ErisDS/Ghost that referenced this issue Mar 9, 2015
fixes TryGhost#4811, refs TryGhost#4240
- Add v0.12 to the build
- Fix express tests to work with iojs/0.12
- Add iojs-v1.2.0 to the build matrix
halfdan added a commit to halfdan/Ghost that referenced this issue Mar 9, 2015
fixes TryGhost#4811, refs TryGhost#4240
- Add v0.12 to the build
- Fix express tests to work with iojs/0.12
- Add iojs-v1.2.0 to the build matrix
@ErisDS
Copy link
Member Author

ErisDS commented May 19, 2015

Done!

@ErisDS ErisDS closed this as completed May 19, 2015
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

No branches or pull requests

6 participants