From fae7f11f1f0991419602abdff9f79b17f39cd0dc Mon Sep 17 00:00:00 2001 From: Raine Revere Date: Sat, 10 Feb 2024 13:00:13 +0000 Subject: [PATCH] comment --- src/package-managers/gitTags.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/package-managers/gitTags.ts b/src/package-managers/gitTags.ts index 1fb60673..e3424f04 100644 --- a/src/package-managers/gitTags.ts +++ b/src/package-managers/gitTags.ts @@ -86,7 +86,8 @@ export const greatestLevel = export const minor = greatestLevel('minor') export const patch = greatestLevel('patch') -/** semver is not possible on a remote Git URL, do nothing. */ +/** All git tags are exact versions, so --target semver should never upgrade git tags. */ +// https://github.com/raineorshine/npm-check-updates/pull/1368 // eslint-disable-next-line @typescript-eslint/no-unused-vars export const semver: GetVersion = async (_name: string, _declaration: VersionSpec, _options?: Options) => { return { version: null }