chainguard-dev / gobump

Go tool to declaratively bump dependencies.
Apache License 2.0
7 stars 11 forks source link

chore: detect go version for go mod tidy #6

Closed hectorj2f closed 11 months ago

hectorj2f commented 11 months ago

This PR detects the golang version and sets it in the go.mod file, e.g go mod tidy -go=<version>. We assume our wolfi golang version is satisfying the initial requirements from the go.mod and its version is higher than the minimum defined in the go.mod file.

This PR also supports running go mod tidy before the bumps.

closes #5