File tree 2 files changed +24
-0
lines changed
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -466,6 +466,8 @@ osx_alt_build_task:
466
466
# This host is/was shared with potentially many other CI tasks.
467
467
# The previous task may have been canceled or aborted.
468
468
prep_script : &mac_cleanup "contrib/cirrus/mac_cleanup.sh"
469
+ lint_script :
470
+ - make lint || true # TODO: Enable when code passes check
469
471
basic_build_script :
470
472
- make .install.ginkgo
471
473
- make podman-remote
Original file line number Diff line number Diff line change 3
3
# Need to run linter twice to cover all the build tags code paths
4
4
set -e
5
5
6
+ # Dedicated block for Darwin: OS doesn't support the rest of this
7
+ # script, only needs to check 'remote', and its golangci-lint needs
8
+ # specialized arguments.
9
+ if [[ $( uname -s) == " Darwin" ]] || [[ " $GOOS " == " darwin" ]]; then
10
+ declare -a DARWIN_SKIP_DIRS
11
+ DARWIN_SKIP_DIRS=(
12
+ libpod/events
13
+ pkg/api
14
+ pkg/domain/infra/abi
15
+ pkg/machine/qemu
16
+ pkg/trust
17
+ test
18
+ )
19
+ echo " "
20
+ echo Running golangci-lint for " remote"
21
+ echo Build Tags " remote" : remote
22
+ echo Skipped directories " remote" : ${DARWIN_SKIP_DIRS[*]}
23
+ ./bin/golangci-lint run --build-tags=" remote" \
24
+ --skip-dirs=$( tr ' ' ' ,' <<< " ${DARWIN_SKIP_DIRS[@]}" )
25
+ exit 0 # All done, don't execute anything below, it will break on Darwin
26
+ fi
27
+
6
28
declare -A BUILD_TAGS
7
29
BUILD_TAGS[default]=" apparmor,seccomp,selinux"
8
30
BUILD_TAGS[abi]=" ${BUILD_TAGS[default]} ,systemd"
You can’t perform that action at this time.
0 commit comments