Skip to content

Support Golang v1.18 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
timo-klarshift opened this issue Mar 28, 2022 · 0 comments
Open

Support Golang v1.18 #4

timo-klarshift opened this issue Mar 28, 2022 · 0 comments

Comments

@timo-klarshift
Copy link

Go v1.18 has been released and after upgrading some projects to that new version code-climate fails:

type Event[T any] struct {
	Time    time.Time
	Service *Service
	Message string
	Body    T
}
error: (CC::CLI::Analyze::EngineFailure) engine golint failed with status 1 and stderr 
Could not lint file: /code/pkg/service/event.go
Error /code/pkg/service/event.go:8:14: expected ']', found any (and 3 more errors)

Here the particular reason is the generic part [T any] which is new in golang 1.18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant