From d78b667af669c33b62772121d73ca7a629dcfd09 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 27 Aug 2019 19:00:47 +0200 Subject: [PATCH] govet: suppress warning about Parent field that repeated json tag "parent" ``` image/image.go:65:2: structtag: struct field Parent repeats json tag "parent" also at image.go:39 (govet) Parent ID `json:"parent,omitempty"` ``` Signed-off-by: Sebastiaan van Stijn --- image/image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/image.go b/image/image.go index 568b23fe7b..f043b042cf 100644 --- a/image/image.go +++ b/image/image.go @@ -62,7 +62,7 @@ type V1Image struct { // Image stores the image configuration type Image struct { V1Image - Parent ID `json:"parent,omitempty"` + Parent ID `json:"parent,omitempty"` //nolint:govet RootFS *RootFS `json:"rootfs,omitempty"` History []History `json:"history,omitempty"` OSVersion string `json:"os.version,omitempty"`