mirror of
https://github.com/containers/podman.git
synced 2025-10-15 02:06:42 +08:00
V2 podman system service
* Added support for system service * Enabled linting on the varlinkapi source, needed to support V2 service command * Added support for PODMAN_SOCKET Skip linting deprecated code Rather than introduce bugs by correcting deprecated code, linting the code is being skipped. Code that is being ported into V2 is being checked. Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
15
hack/golangci-lint.sh
Executable file
15
hack/golangci-lint.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
# Need to run linter twice to cover all the build tags code paths
|
||||
|
||||
declare -A BUILD_TAGS
|
||||
BUILD_TAGS[default]="apparmor,seccomp,selinux"
|
||||
BUILD_TAGS[abi]="${BUILD_TAGS[default]},ABISupport,varlink,!remoteclient"
|
||||
BUILD_TAGS[tunnel]="${BUILD_TAGS[default]},!ABISupport,!varlink,remoteclient"
|
||||
|
||||
[[ $1 == run ]] && shift
|
||||
|
||||
for i in tunnel abi; do
|
||||
echo Build Tags: ${BUILD_TAGS[$i]}
|
||||
golangci-lint run --build-tags=${BUILD_TAGS[$i]} "$@"
|
||||
done
|
Reference in New Issue
Block a user