-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Invalid comparator for git URL repos #1437
Comments
Any other information with the error message? I'm not able to reproduce. |
Running as
in a turborepo root folder
|
Runnig well if I downgrade to npm-check-updates@16 |
Okay, seems to be coming from |
Can you try |
Did not fix it, also there is no special characters in the url just letters _ - and numbers |
Okay, thanks. I'll investigate as soon as I can. Or if anyone else would like to look at it, help is always welcome. |
Here is an example url copied from the package json |
I'm not able to reproduce based on the url alone, as this completes without error: {
"dependencies": {
"@libraries/project-4-utils": "git+gitlab.com/projects/libraries/project-4-utils.git"
}
} It ignores the dependency here, since it recognizes that the git url does not contain a valid version number: npm-check-updates/src/package-managers/npm.ts Lines 483 to 485 in d1f62b5
We must be missing something else that is causing the error. |
Just did some more testing, does not fail without --peer enabled |
Bingo. I traced it to a regression in c9fe908. We neglected to filter out non-semver values when using minVersion in the peer check. Fixed and published in |
Regression in v17
Steps to Reproduce
Add a package that is referencing a git repo:
"@mypackage": "git+https://user:[email protected]/mypackage.git",
Current Behavior
Crashes with error
TypeError: Invalid comparator: git+https://user:[email protected]/mypackage.git
Expected Behavior
Should ignore git packages
The text was updated successfully, but these errors were encountered: