renovate icon indicating copy to clipboard operation
renovate copied to clipboard

Golang parse 'incompatible' component of semver

Open sp3nx0r opened this issue 2 years ago • 1 comments

What would you like Renovate to be able to do?

Ref: https://github.com/renovatebot/renovate/discussions/17079

Golang dependencies that aren't v2 module compatible (i.e. don't have a go.mod in their source) but have a valid semver get tagged as <semver>+incompatible in go.mod. Renovate cannot currently parse this but should as the dependency is still eliglbe for upgrade, it's just a signifier that the dependency doesn't comply with go modules v2.

Example repo: https://github.com/sp3nx0r/renovate-golang-incompatible

If you have any ideas on how this should be implemented, please tell us here.

Just strip the +incompatible component of the semver and treat it as standard semver, without the need for users to create a custom version regex rule. This doesn't affect the underlying capability of the dependency

Is this a feature you are interested in implementing yourself?

No

sp3nx0r avatar Aug 09 '22 21:08 sp3nx0r

can you show us the custom version regex you made to resolve this? for other people who are facing the same issue

PhilipAbed avatar Aug 10 '22 06:08 PhilipAbed

:tada: This issue has been resolved in version 32.208.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

renovate-release avatar Sep 29 '22 20:09 renovate-release