From 99a2eff8bb69ced9f1ca9bf836fe99acf09916c9 Mon Sep 17 00:00:00 2001 From: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Date: Tue, 27 Jul 2021 10:25:54 +0200 Subject: [PATCH] docs: improve Go binary version docs (#10942) --- docs/usage/golang.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/docs/usage/golang.md b/docs/usage/golang.md index 8c860e7997..a51df4dece 100644 --- a/docs/usage/golang.md +++ b/docs/usage/golang.md @@ -40,11 +40,19 @@ Renovate will commit all files changed within the `vendor/` folder. ### Go binary version -By default, Renovate will keep up with the very latest version of `go`. +By default, Renovate will keep up with the latest version of the `go` binary. -You can "pin" the `go` version that Renovate uses. -Say you want Renovate to use Go version 1.14, you can do this by adding `go 1.14` to your `go.mod` file. -We do not support pinning Go versions to a specific patch level, so you cannot use `go 1.14.12`, but you can use `go 1.14` in your `go.mod` file. +You can force Renovate to use a specific version of Go by setting a constraint. +As an example, say you want Renovate to use the latest patch version of the `1.16` Go binary, you'd put this in your Renovate config: + +```json + "constraints": { + "go": "1.16" + } +``` + +We do not support patch level versions for the minimum `go` version. +This means you cannot use `go 1.16.6`, but you can use `go 1.16` as a contraint. ### Custom registry support, and authentication -- GitLab