solo-io / go-utils

golang utilities
Apache License 2.0
111 stars 19 forks source link

Remove duplicated and older dependency bumps on generation #519

Open inFocus7 opened 1 year ago

inFocus7 commented 1 year ago

Changes

Added code to only generate the latest dependency bumps on release.

When following semantic versioning v[MAJOR][.MINOR][.PATCH], we only get the latest bump in the list of dependency bumps. When not following semantic versioning, we display all bumps done within the release.

Context

We've previously had instance on release, where we see multiple dependency bumps for the same dependency, for example:

** DEPENDENCY BUMPS **
- solo-io/gloo has been upgraded to v1.15.0-beta7
- solo-io/gloo has been upgraded to v1.15.0-beta8
- solo-io/gloo has been upgraded to v1.15.0-beta9

In order to mitigate this, developers have to manually remove older reference bumps within the same release version - which is easy to forget.

Other possible path(s) forward

TODO / NOTES

These are probably not super likely scenarios, but still technically possible.