Skip to content

Commit

Permalink
fix(nuget): use last version if no stable exists (#8327)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Jan 18, 2021
1 parent 12cc307 commit 9bffbb6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/datasource/nuget/v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,13 @@ export async function getReleases(
return null;
}

// istanbul ignore if: only happens when no stable version exists
if (latestStable === null) {
const last = catalogEntries.pop();
latestStable = removeBuildMeta(last.version);
homepage ??= last.projectUrl;
}

const dep: ReleaseResult = {
pkgName,
releases,
Expand Down

0 comments on commit 9bffbb6

Please sign in to comment.