Closed Dentrax closed 3 months ago
Once we ship it, we should add a flag to the gobump pipeline in Wolfi.
Looks good to me overall. @Dentrax Could you a test to test this new functionality ?
Thank you @hectorj2f, I have tried to add a unit test but I'm not sure if I did handle the case correctly. Please take a look when possible.
CI is failing because of: 'go mod tidy': exit status 2 with output: invalid value "1.20.14" for flag -go: expecting a Go version like "1.20"
Thanks for the fixing the CI issue!
This flag would be useful for the cases where old packages contains old dependencies that would require to do replace or update before running
go mod tidy
.For example, for the following case: https://github.com/iwilltry42/confd
It's impossible to use
gobump
since one of dependencies got renamed, that required replace first:The new
--skip-initial-tidy
flag solves that by skipping the firstgo mod tidy
run. So that we able to do required updates and replaces before rungo mod tidy
.Do
git reset --hard
and append the new--skip-initial-tidy
flag, then expect to see a success output: