1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-24 08:12:38 +02:00
imgproxy/.lefthook/pre-commit/lint

11 lines
222 B
Plaintext
Raw Normal View History

2019-08-20 15:45:52 +02:00
#!/bin/sh
2019-08-20 16:26:55 +02:00
if [ -x "$(which brew)" ]; then
2019-08-20 15:45:52 +02: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