[x] Add a flag to run go mod tidy after running the bumps.
[x] Collect the state of the modFile to drop any existing occurrence of the packages on require and/or replace blocks in go.mod.
I added a test for go mod tidy and adapted the current tests to accept a map instead of an array. With this map, we can collect the current state of the go.mod per bump package.
go mod tidy
after running the bumps.require
and/orreplace
blocks in go.mod.I added a test for
go mod tidy
and adapted the current tests to accept amap
instead of an array. With this map, we can collect the current state of thego.mod
per bump package.