This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
Added support for detecting outdated git packages. #8300 #12833
Closed
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.
Hi @othiym23!
I have started to work on updating the
outdated
command so that it correctly detects outdated git dependencies. So far, things seem to work, but I am not too sure whether I got everything right. There may be a few things in the code that should be changed to better suit your way of doing things.My primary goal so far was to show a possible way of solving this issue and to start a discussion. Maybe, if you have time, you could give me some feedback on my changes. What do you think of them? Do they head into the correct direction, or am I doing things fundamentally wrong here?
I have also added a few tests. Since they check GitHub, I needed to create a repository that has a fixed tag
0.1.0
(I need to ensure that the tags won't change, otherwise the tests break because external factors have changed).So, I created the repository goloroden/npm-outdated-git-test. Of course it would make a lot of sense to move this repository (or something similar) to the
npm
organization if this PR gets merged. Then, this also means that the tests need to be adjusted. This only affects the filetest/tap/outdated-git.js
.Generally speaking, thanks for your great work with npm, and I hope that I maybe can provide a (very) small bit to it :-)
Looking forward to your feedback!
Golo