golangci-lint: remove most skip dirs

Now that we have propert !remote tags set everywhere we can just rely on
that and do not need to skip any dirs.
Also on linux do not lint three times, one remote run is enough.
We still have to skip the test dir for windows/macos though or we need
to add linux build tags there everywhere as well. This seems simpler.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2024-08-15 13:22:59 +02:00
parent 942f789a88
commit 6c0d94328f
4 changed files with 9 additions and 3 deletions

View File

@ -18,11 +18,11 @@ BUILD_TAGS_TUNNEL="$BUILD_TAGS_DEFAULT,remote"
BUILD_TAGS_REMOTE="remote,containers_image_openpgp"
SKIP_DIRS_ABI=""
SKIP_DIRS_TUNNEL="pkg/api,pkg/domain/infra/abi,internal/domain/infra/abi"
SKIP_DIRS_REMOTE="libpod/events,pkg/api,pkg/domain/infra/abi,internal/domain/infra/abi,pkg/machine/qemu,pkg/trust,test"
SKIP_DIRS_TUNNEL=""
SKIP_DIRS_REMOTE="libpod/events,test"
declare -a to_lint
to_lint=(ABI TUNNEL REMOTE)
to_lint=(ABI TUNNEL)
# Special-case, for Darwin and Windows only "remote" linting is possible and required.
if [[ "$GOOS" == "windows" ]] || [[ "$GOOS" == "darwin" ]]; then

View File

@ -1,3 +1,5 @@
//go:build linux || freebsd
package events
import (

View File

@ -1,3 +1,5 @@
//go:build linux
package bindings_test
import (

View File

@ -1,3 +1,5 @@
//go:build linux
package integration
import (