1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-23 11:14:48 +02:00

16 lines
323 B
Plaintext
Raw Normal View History

2019-08-20 19:45:52 +06:00
#!/bin/sh
2019-09-16 15:53:32 +06:00
if ! git diff --staged --name-only | grep -qe ".*\.go$"; then
echo "Nothing to lint"
exit 0;
fi
2019-08-20 20:26:55 +06:00
if [ -x "$(which brew)" ]; then
2019-08-20 19:45:52 +06:00
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libffi)/lib/pkgconfig"
fi
export CGO_LDFLAGS_ALLOW="-s|-w"
export CGO_CFLAGS_ALLOW="-Xpreprocessor"
golangci-lint run