Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

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 <[email protected]>
@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 <[email protected]>
@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 <[email protected]>
@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 <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants