"fix(gomod): write full pseudo-version instead of bare hash on digest updates" breaks updates for repos unavailable on go proxy #44449
-
How are you running Renovate?Self-hosted Renovate CLI Which platform you running Renovate on?GitHub Enterprise Server Which version of Renovate are you using?43.252.1 Please tell us more about your question or problemDescriptionSince Renovate version 43.167.0 (which includes PR #41588), digest updates for Go modules with pseudo-versions no longer produce file changes, if the repository is unavailable in the goproxy (for example repos on github enterprise instances, private repositories, etc). However, since current value is a pseudo-version, the version starts with added by the above PR, but since Before the above PR, the Reproducing the issueRepo A has a dependency to private repo B, to which renovate has access, but goproxy does not. Merge something to main of repo B, which produces e.g. digest ffffffffff. Possible fixEnsure we get to the defensive fallback path, if newValue has not changed, by replacing if (upgrade.newValue?.startsWith('v0.0.0-')) {with if (upgrade.newValue?.startsWith('v0.0.0-')) && upgrade.newValue !== upgrade.currentValue {Logs (if relevant)Logs |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Issue Created: #44455 You solution looks correct as well. PR Welcome |
Beta Was this translation helpful? Give feedback.
Issue Created: #44455
You solution looks correct as well. PR Welcome