Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

When replacing an existing module with a bundled one, remove it first #10192

Closed
wants to merge 1 commit into from

Conversation

iarna
Copy link
Contributor

@iarna iarna commented Oct 31, 2015

If a bundled module is going to be replacing a module that's currently on disk (for instance, when you upgrade a module that includes bundled dependencies) we want to select the version from the bundle in preference over the one that was there previously.

We achieve this by removing the obsoleted module before extracting the bundled dependency.

This fixes the problems npm is currently seeing in Travis, where it has trouble upgrading to 3.3.11 from a 2.x branch.

@iarna iarna self-assigned this Oct 31, 2015
@iarna
Copy link
Contributor Author

iarna commented Oct 31, 2015

(For deploy monday with a special 3.3.12 release)

@iarna
Copy link
Contributor Author

iarna commented Nov 2, 2015

This landed in 3.3.12

@iarna iarna closed this Nov 2, 2015
@iarna iarna removed the in-progress label Nov 2, 2015
@othiym23 othiym23 deleted the iarna/fix-bundled branch November 20, 2015 00:18
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.

1 participant