Skip to content
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

golangci-ling: disable unconverted until it can support -- all flag #4516

Merged
merged 1 commit into from Feb 28, 2022

Conversation

egernst
Copy link
Member

@egernst egernst commented Feb 25, 2022

currently unconvert static check will fail for some host operating systems, but pass on others. Example, see kata-containers/kata-containers#3774 (comment)

It looks like this isn't supported in golangci-lint at this point: golangci/golangci-lint#1809

Let's drop until golangci-lint supports this.

@egernst
Copy link
Member Author

egernst commented Feb 25, 2022

/test

@egernst
Copy link
Member Author

egernst commented Feb 25, 2022

/test

egernst added a commit to egernst/kata-containers that referenced this pull request Feb 25, 2022
Their types may differ on various host OSes, but
unix.Major|Minor always takes a uint64

Depends-on: github.com/kata-containers/tests#4516
Signed-off-by: Eric Ernst <eric_ernst@apple.com>
@egernst
Copy link
Member Author

egernst commented Feb 25, 2022

/test

We've seen instances of casting's being flagged on linux, when they are
necessary running on other OSs (Darwin).

While unconvert does have an "all" option where it'll check OS/Arch
combinations, this isn't exposed in golangci-lint.

Let's disable for now.

Fixes: kata-containers#4517
Signed-off-by: Eric Ernst <eric_ernst@apple.com>
@egernst egernst changed the title unconvert: ensure unconvert checks each OS golangci-ling: disable unconverted until it can support -- all flag Feb 25, 2022
@egernst
Copy link
Member Author

egernst commented Feb 25, 2022

/test

@egernst
Copy link
Member Author

egernst commented Feb 26, 2022

/test

sameo pushed a commit to egernst/kata-containers that referenced this pull request Feb 27, 2022
Their types may differ on various host OSes, but
unix.Major|Minor always takes a uint64

Depends-on: github.com/kata-containers/tests#4516
Signed-off-by: Eric Ernst <eric_ernst@apple.com>
@egernst egernst merged commit 6dae099 into kata-containers:main Feb 28, 2022
egernst added a commit to egernst/kata-containers that referenced this pull request Feb 28, 2022
Their types may differ on various host OSes, but
unix.Major|Minor always takes a uint64

Depends-on: github.com/kata-containers/tests#4516
Signed-off-by: Eric Ernst <eric_ernst@apple.com>
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

Successfully merging this pull request may close these issues.

None yet

3 participants