1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

golangci-lint: set correct build-tags to lint journald if supported

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-08-07 02:12:46 +02:00
parent 85b89c9e50
commit d1363f5a90
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -10,6 +10,13 @@ SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
[ -n "${TESTDEBUG}" ] && set -x
# TODO find a way to share this code with hack/make.sh
if ${PKG_CONFIG} 'libsystemd >= 209' 2> /dev/null ; then
DOCKER_BUILDTAGS+=" journald"
elif ${PKG_CONFIG} 'libsystemd-journal' 2> /dev/null ; then
DOCKER_BUILDTAGS+=" journald journald_compat"
fi
# TODO use --out-format=junit-xml and store artifacts
GOGC=20 golangci-lint run \
${GOLANGCI_LINT_OPTS} \