diff --git a/build/ci/golangci.yml b/build/ci/golangci.yml index 8b3200b7bc..731343ed96 100644 --- a/build/ci/golangci.yml +++ b/build/ci/golangci.yml @@ -125,6 +125,7 @@ linters: - ineffassign - makezero - misspell + - musttag - nakedret - nilerr - noctx diff --git a/internal/pkg/service/common/etcdop/op/op_test.go b/internal/pkg/service/common/etcdop/op/op_test.go index a392f2c6ef..5e0cd7e53e 100644 --- a/internal/pkg/service/common/etcdop/op/op_test.go +++ b/internal/pkg/service/common/etcdop/op/op_test.go @@ -21,7 +21,7 @@ type testOp struct { } type testValue struct { - Foo string + Foo string `json:"foo"` } type opTestCase[R any] struct { diff --git a/internal/pkg/service/stream/api/mapper/task.go b/internal/pkg/service/stream/api/mapper/task.go index 9e1253db2a..fd7e058240 100644 --- a/internal/pkg/service/stream/api/mapper/task.go +++ b/internal/pkg/service/stream/api/mapper/task.go @@ -56,7 +56,7 @@ func (m *Mapper) NewTaskResponse(entity task.Task) (*api.Task, error) { // Outputs if entity.Outputs != nil { response.Outputs = &api.TaskOutputs{} - err := mapstructure.Decode(entity.Outputs, response.Outputs) + err := mapstructure.Decode(entity.Outputs, response.Outputs) // nolint: musttag if err != nil { return nil, err }