From 6c845ded188bb52b56903e7e9a12fa253964e253 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 18 Dec 2025 15:00:55 +0100 Subject: [PATCH] api/types/swarm: ResourceRequirements.MemorySwappiness: fix json tag types/swarm/task.go:151:2: structtag: struct field tag `json:MemorySwappiness,omitzero"` not compatible with reflect.StructTag.Get: bad syntax for struct tag value (govet) MemorySwappiness *int64 `json:MemorySwappiness,omitzero"` ^ Signed-off-by: Sebastiaan van Stijn --- api/types/swarm/task.go | 2 +- vendor/github.com/moby/moby/api/types/swarm/task.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/types/swarm/task.go b/api/types/swarm/task.go index f61190683c..83f87028bc 100644 --- a/api/types/swarm/task.go +++ b/api/types/swarm/task.go @@ -148,7 +148,7 @@ type ResourceRequirements struct { // Tune container memory swappiness (0 to 100) - if not specified, defaults // to the container OS's default - generally 60, or the value predefined in // the image; set to -1 to unset a previously set value - MemorySwappiness *int64 `json:MemorySwappiness,omitzero"` + MemorySwappiness *int64 `json:"MemorySwappiness,omitzero"` } // Placement represents orchestration parameters. diff --git a/vendor/github.com/moby/moby/api/types/swarm/task.go b/vendor/github.com/moby/moby/api/types/swarm/task.go index f61190683c..83f87028bc 100644 --- a/vendor/github.com/moby/moby/api/types/swarm/task.go +++ b/vendor/github.com/moby/moby/api/types/swarm/task.go @@ -148,7 +148,7 @@ type ResourceRequirements struct { // Tune container memory swappiness (0 to 100) - if not specified, defaults // to the container OS's default - generally 60, or the value predefined in // the image; set to -1 to unset a previously set value - MemorySwappiness *int64 `json:MemorySwappiness,omitzero"` + MemorySwappiness *int64 `json:"MemorySwappiness,omitzero"` } // Placement represents orchestration parameters.