-
Notifications
You must be signed in to change notification settings - Fork 3k
Allow installations from git+file:// if the package is private #4108
Conversation
Question: Please note the different usage of the variable
VS
As both are not merged yet, what do you think is the way to go? |
I really hate to be Also, it's possible I wasn't really clear when describing supporting local filesystem dependencies, but I don't think we need to get in the way of someone installing something, it's more on the publish side. There's really no benefit to the user or safety for the registry to do a sanity check for Lastly, does this work the same on Windows? Does it support directories as well? npm isn't intrinsically tied to git, so if we're adding support for local things as first-class dependencies, it should probably be more than just via a local git repo. Anyway, sorry, you've been doing awesome work and I feel bad for bringing this up, but I think it has to be said. |
Hey @luk-, thanks for your feedback, I would really like to help splitting up install.js - but that would be another PR. Please have a look at https://github.com/robertkowalski/npm/blob/4d0be594c1b9de2501f5544f53b5d8e441fa088b/lib/publish.js#L132 and the whole diff from publish.js - there is a check for preventing publishing modules. I can remove the check when installing modules, that's no problem for me. You are right that this probably makes no sense, but from the previous context I thought it might be worthy to include the check there too. I don't get your last point regarding directories. What do you mean with directories? What do I have to do to get this merged now, despite removing the check from install.js or how do we continue? |
Ah, forgot to add: I definitely want this feature (local git dependencies) to be able to convert more of these tests https://github.com/isaacs/npm/blob/master/test/packages/npm-test-shrinkwrap/package.json#L7 to tap, without connecting to github or any other git repos over the network and to be able to test anything new git related |
Throw error, in case packages are going to be published See npm#3868
Had the time to test this on windows and work further on this issue: It works on windows and I removed the nagging of users during install. I like the idea with the local directories, but let's take this as a first step. |
I am +1. It would be nice to get @isaacs to make a judgement call though. |
Yup, izs is the judgement call on this one. On Thursday, November 21, 2013, Domenic Denicola wrote:
|
I'll take another look at this as part of landing #5629. Thanks for your patience, @robertkowalski! |
hey @othiym23 - i would love to port that patch to the current codebase to catch up - if you still consider it to land. i can really say that i really was depending on this to write integrations tests that covered an install from git - and additionally the initial wish to add this came from the community. i am also happy to close this - no hard feelings |
@robertkowalski: https://github.com/npm/npm/blob/master/test/tap/git-npmignore.js#L43 😁 This got merged in through the backdoor when we were making changes to There may be bugs in how it works. File those as separate issues? |
❤️ |
@othiym23 will close the issues related to it |
See #3868