Skip to content
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

fix(gomod): treat v0 pseudo version updates as digest updates #29042

Merged
merged 12 commits into from
May 17, 2024
10 changes: 10 additions & 0 deletions lib/workers/repository/process/lookup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,16 @@
bucket,
release,
);

// #29034
if (
config.manager === 'gomod' &&
compareValue?.startsWith('v0.0.0-') &&
config.currentDigest !== update.newDigest
) {
update.updateType = 'digest';

Check warning on line 419 in lib/workers/repository/process/lookup/index.ts

View check run for this annotation

Codecov / codecov/patch

lib/workers/repository/process/lookup/index.ts#L419

Added line #L419 was not covered by tests
}

if (pendingChecks) {
update.pendingChecks = pendingChecks;
}
Expand Down
Loading