diff --git a/builder/dockerfile/mockbackend_test.go b/builder/dockerfile/mockbackend_test.go index 06b3ffd6e0..81f74175a2 100644 --- a/builder/dockerfile/mockbackend_test.go +++ b/builder/dockerfile/mockbackend_test.go @@ -104,7 +104,7 @@ func (i *mockImage) OperatingSystem() string { func (i *mockImage) MarshalJSON() ([]byte, error) { type rawImage mockImage - return json.Marshal(rawImage(*i)) + return json.Marshal(rawImage(*i)) //nolint:staticcheck } type mockImageCache struct {