From 2267ab929ced847eb66e28606782053224e6c593 Mon Sep 17 00:00:00 2001 From: Catherine Date: Sat, 28 Mar 2026 00:30:43 +0000 Subject: [PATCH] Update go-toml to v2.3.0 and freeze it. The upstream added AGENTS.md and removed all unsafe code in the same release. I've manually reviewed the entire v2.2.4..v2.3.0 diff and found no issues except for one potential problem with `go-toml/errors.subsliceOffset` that would only appear with a moving GC. This seems like a strict improvement but we don't want any more updates. --- go.mod | 2 +- go.sum | 2 ++ gomod2nix.toml | 4 ++-- renovate.json | 4 ++++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 5ea77a9..c9714b8 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/klauspost/compress v1.18.5 github.com/maypok86/otter/v2 v2.3.0 github.com/minio/minio-go/v7 v7.0.99 - github.com/pelletier/go-toml/v2 v2.2.4 + github.com/pelletier/go-toml/v2 v2.3.0 github.com/pquerna/cachecontrol v0.2.0 github.com/prometheus/client_golang v1.23.2 github.com/samber/slog-multi v1.7.1 diff --git a/go.sum b/go.sum index d8c0436..6a7c842 100644 --- a/go.sum +++ b/go.sum @@ -101,6 +101,8 @@ github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 h1:onHthvaw9LFnH4t2D github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58/go.mod h1:DXv8WO4yhMYhSNPKjeNKa5WY9YCIEBRbNzFFPJbWO6Y= github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0t5Ec4= github.com/pelletier/go-toml/v2 v2.2.4/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY= +github.com/pelletier/go-toml/v2 v2.3.0 h1:k59bC/lIZREW0/iVaQR8nDHxVq8OVlIzYCOJf421CaM= +github.com/pelletier/go-toml/v2 v2.3.0/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY= github.com/philhofer/fwd v1.2.0 h1:e6DnBTl7vGY+Gz322/ASL4Gyp1FspeMvx1RNDoToZuM= github.com/philhofer/fwd v1.2.0/go.mod h1:RqIHx9QI14HlwKwm98g9Re5prTQ6LdeRQn+gXJFxsJM= github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= diff --git a/gomod2nix.toml b/gomod2nix.toml index 4a3368b..2eb61d8 100644 --- a/gomod2nix.toml +++ b/gomod2nix.toml @@ -113,8 +113,8 @@ schema = 3 version = "v0.0.0-20210728143218-7b4eea64cf58" hash = "sha256-QI+F1oPLOOtwNp8+m45OOoSfYFs3QVjGzE0rFdpF/IA=" [mod."github.com/pelletier/go-toml/v2"] - version = "v2.2.4" - hash = "sha256-8qQIPldbsS5RO8v/FW/se3ZsAyvLzexiivzJCbGRg2Q=" + version = "v2.3.0" + hash = "sha256-3ftKBqSwUp5rs10NigReAJ8RxfnP4Aol45EkP0XRaa4=" [mod."github.com/philhofer/fwd"] version = "v1.2.0" hash = "sha256-cGx2/0QQay46MYGZuamFmU0TzNaFyaO+J7Ddzlr/3dI=" diff --git a/renovate.json b/renovate.json index 23aeee6..f06b5df 100644 --- a/renovate.json +++ b/renovate.json @@ -8,6 +8,10 @@ { "matchPackageNames": ["actions/buildah-simple"], "enabled": false + }, + { + "matchPackageNames": ["github.com/pelletier/go-toml/v2"], + "enabled": false // added AGENTS.md; v2.3.0 has been manually reviewed } ], "automerge": false,