Skip to content

Commit

Permalink
fix(go): Request only info for versions with the same major
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Dec 17, 2024
1 parent 3b9464c commit 6d7c615
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/modules/datasource/go/releases-goproxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,12 @@ export class GoProxyDatasource extends Datasource {

try {
const res = await this.listVersions(baseUrl, pkg);
releases = await p.map(res, async (versionInfo) => {
const filteredReleases = res.filter(
({ version }) =>
version.split(regEx(/[^\d]+/)).find(is.truthy) === major.toString(),
);

releases = await p.map(filteredReleases, async (versionInfo) => {
const { version, newDigest, releaseTimestamp } = versionInfo;

if (releaseTimestamp) {
Expand Down

0 comments on commit 6d7c615

Please sign in to comment.