renovate/lib/manager/gomod
Sergei Zharinov 1392955a04
refactor: Identify tests relying on single snapshots (#11150)
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
2021-08-07 23:43:34 +00:00
..
__fixtures__ feat(gomod): dynamic version detection (#6419) 2020-06-03 10:39:29 +02:00
__snapshots__ fix(gomod): revert auth changes (#11021) 2021-07-30 10:23:35 +00:00
artifacts.spec.ts refactor: Identify tests relying on single snapshots (#11150) 2021-08-07 23:43:34 +00:00
artifacts.ts fix(gomod): revert auth changes (#11021) 2021-07-30 10:23:35 +00:00
extract.spec.ts fix(gomod): use latest go version when binarySource=docker (#9765) 2021-05-01 12:17:24 +00:00
extract.ts chore(deps): update dependency prettier to v2.3.0 (#10012) 2021-05-17 08:06:24 +00:00
index.ts chore: import linting (#6105) 2020-05-01 18:03:48 +02:00
readme.md fix(gomod): use latest go version when binarySource=docker (#9765) 2021-05-01 12:17:24 +00:00
update.spec.ts feat(test): Detect test utils callers and simplify helpers (#9707) 2021-04-26 16:15:03 +02:00
update.ts fix(go): fix go module double suffix on major upgrade (#8946) 2021-03-05 09:28:59 +00:00

You might be interested in the following postUpdateOptions:

  1. gomodTidy - if you'd like Renovate to run go mod tidy after every update before raising the PR.
    1. This is implicitly enabled for major updates
  2. gomodUpdateImportPaths - if you'd like Renovate to update your source import paths on major updates before raising the PR.

When Renovate is running using binarySource=docker (such as in the hosted WhiteSource Renovate app) then it will pick the latest compatible version of Go to run, i.e. the latest 1.x release. Therefore even if the go.mod contains a version like go 1.14, you will see Renovate treating that as a ^1.14 constraint and not =1.14.