mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-08-11 17:53:30 +08:00
add vendor packages避免用户网络太慢无法下载编译
This commit is contained in:
29
vendor/github.com/Shopify/sarama/Makefile
generated
vendored
Normal file
29
vendor/github.com/Shopify/sarama/Makefile
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
default: fmt vet errcheck test
|
||||
|
||||
# Taken from https://github.com/codecov/example-go#caveat-multiple-files
|
||||
test:
|
||||
echo "" > coverage.txt
|
||||
for d in `go list ./... | grep -v vendor`; do \
|
||||
go test -v -timeout 60s -race -coverprofile=profile.out -covermode=atomic $$d; \
|
||||
if [ -f profile.out ]; then \
|
||||
cat profile.out >> coverage.txt; \
|
||||
rm profile.out; \
|
||||
fi \
|
||||
done
|
||||
|
||||
vet:
|
||||
go vet ./...
|
||||
|
||||
errcheck:
|
||||
errcheck github.com/Shopify/sarama/...
|
||||
|
||||
fmt:
|
||||
@if [ -n "$$(go fmt ./...)" ]; then echo 'Please run go fmt on your code.' && exit 1; fi
|
||||
|
||||
install_dependencies: install_errcheck get
|
||||
|
||||
install_errcheck:
|
||||
go get github.com/kisielk/errcheck
|
||||
|
||||
get:
|
||||
go get -t
|
Reference in New Issue
Block a user