public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/moby-engine] rawhide: Fix Go 1.27 json issues
@ 2026-07-17 23:21
0 siblings, 0 replies; only message in thread
From: @ 2026-07-17 23:21 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/moby-engine
Branch : rawhide
Commit : a17e8b9bcc732e0d15ee8d6a547f35a4f87aa2bf
Author : Alejandro Sáez <asm@redhat.com>
Date : 2026-07-17T17:11:14+02:00
Stats : +51/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/moby-engine/c/a17e8b9bcc732e0d15ee8d6a547f35a4f87aa2bf?branch=rawhide
Log:
Fix Go 1.27 json issues
---
diff --git a/0001-Fix-Go-1.27-json-issues.patch b/0001-Fix-Go-1.27-json-issues.patch
new file mode 100644
index 0000000..c4ef938
--- /dev/null
+++ b/0001-Fix-Go-1.27-json-issues.patch
@@ -0,0 +1,50 @@
+From 6cd0706cb8a1c4d6d5e1d56ca66ad370003872f2 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Alejandro=20S=C3=A1ez?= <asm@redhat.com>
+Date: Fri, 17 Jul 2026 17:09:28 +0200
+Subject: [PATCH] Fix Go 1.27 json issues
+
+---
+ daemon/config/config_test.go | 4 +++-
+ daemon/pkg/opts/nri_opts.go | 4 ++--
+ 2 files changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/daemon/config/config_test.go b/daemon/config/config_test.go
+index 559131b..8d1002e 100644
+--- a/daemon/config/config_test.go
++++ b/daemon/config/config_test.go
+@@ -2,6 +2,7 @@
+
+ import (
+ "encoding/json"
++ "errors"
+ "net/netip"
+ "os"
+ "path/filepath"
+@@ -41,7 +42,8 @@ func TestDaemonBrokenConfiguration(t *testing.T) {
+ configFile := makeConfigFile(t, `{"Debug": tru`)
+
+ _, err := MergeDaemonConfigurations(&Config{}, nil, configFile)
+- assert.ErrorContains(t, err, `invalid character ' ' in literal true`)
++ var syntaxErr *json.SyntaxError
++ assert.Assert(t, errors.As(err, &syntaxErr), "expected JSON syntax error, got %v", err)
+ }
+
+ // TestDaemonConfigurationUnicodeVariations feeds various variations of Unicode into the JSON parser, ensuring that we
+diff --git a/daemon/pkg/opts/nri_opts.go b/daemon/pkg/opts/nri_opts.go
+index ba9c728..3033b23 100644
+--- a/daemon/pkg/opts/nri_opts.go
++++ b/daemon/pkg/opts/nri_opts.go
+@@ -19,8 +19,8 @@ type NRIOpts struct {
+ func (c *NRIOpts) UnmarshalJSON(raw []byte) error {
+ dec := json.NewDecoder(bytes.NewReader(raw))
+ dec.DisallowUnknownFields()
+- type nc *NRIOpts // prevent recursion
+- if err := dec.Decode(nc(c)); err != nil {
++ type nc NRIOpts // prevent recursion
++ if err := dec.Decode((*nc)(c)); err != nil {
+ return err
+ }
+ return nil
+--
+2.55.0
+
diff --git a/moby-engine.spec b/moby-engine.spec
index 4961fe8..9be3b67 100644
--- a/moby-engine.spec
+++ b/moby-engine.spec
@@ -69,6 +69,7 @@ Source201: cli_go-vendor-tools.toml
# Patches 0-999 are for moby/moby
Patch0: 0001-systemd-adjust-docker.service-for-downstream.patch
+Patch1: 0001-Fix-Go-1.27-json-issues.patch
# Patches 1000+ are for docker/cli
# Patch1000:
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-17 23:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-17 23:21 [rpms/moby-engine] rawhide: Fix Go 1.27 json issues
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox