GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — deps: upgrade npm to 2.5.1 by othiym23 · Pull Request #738 · nodejs/node

Conversation

@othiym23

@othiym23 othiym23 commented Feb 6, 2015

Copy link
Copy Markdown
Contributor

I'm skipping the release train and violating npm's release process a little, because the major new "feature" of [email protected] is that its tests have been updated to pass on io.js 1.1.x (see #663 for context). The test failures weren't always visible because the test-npm stanza in the Makefile needs to be updated to ensure that the PATH is set up to only run the binary built by the Makefile. For joyent/node, the patch looks like:

% g d Makefile
diff --git a/Makefile b/Makefile
index 6c148eb..9f388c4 100644
--- a/Makefile
+++ b/Makefile
@@ -154,12 +154,15 @@ test-npm: node
        cd deps/npm ; npm_config_cache="$(shell pwd)/npm-cache" \
             npm_config_prefix="$(shell pwd)/npm-prefix" \
             npm_config_tmp="$(shell pwd)/npm-tmp" \
-            ../../node cli.js install
+            PATH="../..:/bin:/usr/bin" \
+            node cli.js install
        cd deps/npm ; npm_config_cache="$(shell pwd)/npm-cache" \
             npm_config_prefix="$(shell pwd)/npm-prefix" \
             npm_config_tmp="$(shell pwd)/npm-tmp" \
-            ../../node cli.js run-script test-all && \
-            ../../node cli.js prune --prod && \
+            PATH="../..:/bin:/usr/bin" \
+            node cli.js run-script test-all && \
+            PATH="../..:/bin:/usr/bin" \
+            node cli.js prune --prod && \
             cd ../.. && \
             rm -rf npm-cache npm-tmp npm-prefix

But for io.js, it's more complicated, because npm's tests themselves rely upon the node binary being present, and that's not guaranteed in the cases where the node → iojs symlink might not have been made yet.

These test changes complement [email protected], which includes a small new feature (see below), but more important fixes a potentially serious regression in npm-registry-client that would cause [email protected] and [email protected] to have issues connecting to registries from within proxied networks (which would also prevent using the bundled npm to update itself if these environments).

The shorter changelog is:

  • 0e8d473 #7281 [email protected]: Clean up API, set connection: close, which makes tests pass on io.js 1.1.x.
    (@robertkowalski)
  • f9313a0
    #7226 Ensure that all request
    settings are copied onto the agent.
    (@othiym23)
  • fec4c96
    Allow --no-proxy to override HTTP_PROXY setting in environment.
    (@othiym23)
  • 9d61e96
    npm outdated --long now includes a column showing the type of dependency.
    (@watilde)

NOTE: skipping ahead in the release train probably means there won't be a new PR for npm being updated next week.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
othiym23 and others added 3 commits February 6, 2015 01:14
@othiym23
deps: upgrade npm to 2.5.1
06dffe4
@bnoordhuis @othiym23
deps: make node-gyp fetch tarballs from iojs.org
004a92b
Apply a small patch that makes node-gyp fetch the tarballs from
https://iojs.org/ instead of http://nodejs.org/

A patch better suited for inclusion upstream will be put together
shortly.

PR-URL: nodejs#343
Reviewed-By: Rod Vagg <[email protected]>
@piscisaureus @othiym23
deps: make node-gyp work again on windows
d2a654d
* Fetch from the correct url.
* Link compiled addons with iojs.lib instead of node.lib.
* Disable checksum checks for iojs.lib until our website supports
  them.

PR: nodejs#422
Reviewed-by: Ben Noordhuis <[email protected]>
Reviewed-by: Rod Vagg <[email protected]>
@Fishrock123 Fishrock123 assigned bnoordhuis Feb 6, 2015
bnoordhuis pushed a commit that referenced this pull request Feb 6, 2015
@othiym23 @bnoordhuis
deps: upgrade npm to 2.5.1
af1bf49
PR-URL: #738
Reviewed-By: Ben Noordhuis <[email protected]>
@bnoordhuis

bnoordhuis commented Feb 6, 2015

Copy link
Copy Markdown
Member

Thanks @othiym23, landed in af1bf49...7a301e2.

/cc @rvagg - we should probably work make test-npm somewhere into the QA / release process.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis bnoordhuis closed this Feb 6, 2015
@piscisaureus

piscisaureus commented Feb 6, 2015

Copy link
Copy Markdown
Contributor

Are we now going to release iojs 1.2.0 ?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@othiym23
othiym23 deleted the npm-2.5.1 branch February 6, 2015 19:11
@othiym23

othiym23 commented Feb 6, 2015

Copy link
Copy Markdown
Contributor Author

@bnoordhuis @rvagg filed as nodejs/build#40

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rvagg rvagg mentioned this pull request Feb 9, 2015
Release proposal: v1.2.0 #768
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@bnoordhuis bnoordhuis

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@othiym23 @bnoordhuis @piscisaureus
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.