Skip to content

new errors with golangci-lint 1.64 #1932

@chmouel

Description

@chmouel
Linting go files...
WARN The linter 'tenv' is deprecated (since v1.64.0) due to: Duplicate feature another linter. Replaced by usetesting. 
pkg/templates/templating.go:77:7: right hand must be only type assertion (forcetypeassert)
						b, err = raw.(*structpb.Value).MarshalJSON()
						^
pkg/templates/templating.go:85:7: right hand must be only type assertion (forcetypeassert)
						b, err = raw.(*structpb.Value).MarshalJSON()
						^
pkg/templates/templating.go:93:7: right hand must be only type assertion (forcetypeassert)
						s, err := protojson.Marshal(raw.(proto.Message))
						^
pkg/templates/templating.go:101:7: right hand must be only type assertion (forcetypeassert)
						s, err := protojson.Marshal(raw.(proto.Message))
						^
pkg/templates/templating.go:109:7: right hand must be only type assertion (forcetypeassert)
						b, err = json.Marshal(raw.(*structpb.Value).GetBoolValue())
						^
make: *** [Makefile:86: lint-go] Error 1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions