Navigation Menu

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

3.2.1: Different behavior when referencing a git repo as dependency without sha/branch/tag. #9145

Open
pleunv opened this issue Aug 3, 2015 · 3 comments

Comments

@pleunv
Copy link

pleunv commented Aug 3, 2015

Somewhat related to my previous issue #9143.

Given the following dep config in package.json:

"dependencies": {
  "internal-dependency": "git+https://<bitbucket-api-key>:x-oauth-basic@bitbucket.org/<username>/internal-dependency.git"
}

npm@2 would do a reinstall of the module with every npm install, automatically fetching any new commits.
npm@3.2.1 installs the module initially, ignores it during all subsequent npm installs.

Is there a way in v3 to get v2's behavior back? Even better, would there be a way to make it poll the repo and see if the package version or at least the most recent commit has changed before it pulls any changes?

@iarna
Copy link
Contributor

iarna commented Oct 23, 2015

Reminder to ourselves, I started to work on infrastructure to support checking for changed git sources here: https://github.com/npm/git-repo-manager

@pleunv
Copy link
Author

pleunv commented Oct 24, 2015

Hurray!
On Sat, 24 Oct 2015 at 00:49, Rebecca Turner notifications@github.com
wrote:

Reminder to ourselves, I started to work on infrastructure to support
checking for changed git sources here:
https://github.com/npm/git-repo-manager


Reply to this email directly or view it on GitHub
#9145 (comment).

@othiym23
Copy link
Contributor

othiym23 commented Feb 2, 2016

The CLI team really needs to decide what the actual desired behavior around cloning and caching git respositories is, and making that behavior consistent and predictable, testing it thoroughly, and updating the installer documentation to clearly describe how git dependencies are cached. This will probably happen in the first half of 2016 as part of making the npm@3 installer robust.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants