Move compose's Go with the Dockerfile's, and let Renovate see it

This commit is contained in:
2026-09-21 07:49:17 +02:00
committed by Lillem4n
parent b3869dd472
commit 24a63f36e7
3 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
# supported Go with: GO_VERSION=1.22 docker compose run --rm test # supported Go with: GO_VERSION=1.22 docker compose run --rm test
x-go: &go x-go: &go
image: golang:${GO_VERSION:-1.26.4} image: golang:${GO_VERSION:-1.27.1}
working_dir: /app working_dir: /app
volumes: volumes:
- .:/app - .:/app
+13
View File
@@ -1,5 +1,18 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customManagers": [
{
"customType": "regex",
"datasourceTemplate": "docker",
"description": "compose.yaml's Go, which the shell default hides from the docker-compose manager",
"managerFilePatterns": [
"/^compose\\.yaml$/"
],
"matchStrings": [
"image: (?<depName>golang):\\$\\{GO_VERSION:-(?<currentValue>[^}]+)\\}"
]
}
],
"extends": [ "extends": [
"config:recommended" "config:recommended"
] ]
+5
View File
@@ -247,5 +247,10 @@ because pairing a street with its exact postnummer rewrites shipped rows.
`x-go` anchor a `user:` — that one needs a mechanism, since Compose interpolates from `x-go` anchor a `user:` — that one needs a mechanism, since Compose interpolates from
the process environment and neither `UID` nor `GID` is exported there, so the process environment and neither `UID` nor `GID` is exported there, so
`user: "${UID}:${GID}"` resolves to `":"`. `user: "${UID}:${GID}"` resolves to `":"`.
- Spell the latest supported Go once: `Dockerfile`'s `ARG GO_VERSION` and
`compose.yaml`'s `golang:${GO_VERSION:-…}` pin one version twice, and a bump that
moved only the first left `docker compose run --rm fmt` formatting to a `gofmt` the
gate rejects. A `renovate.json` custom manager reads the second today; drop it with
the duplication.
- Publish a homepage with an in-browser generator: the library compiled to WebAssembly, - Publish a homepage with an in-browser generator: the library compiled to WebAssembly,
so visitors generate as much data as they like in their own browser. so visitors generate as much data as they like in their own browser.