mirror of
https://github.com/rancher/plugins.git
synced 2025-09-24 04:42:22 +00:00
Update Vendor
(*) github.com/Microsoft/hcsshim (*) golang.org/x/sys (*) github.com/x/cyrpto (*) github.com/sirupsen/logrus (*) github.com/Microsoft/go-winio (*) github.com/juju/errors (*) github.com/buger/jsonparser
This commit is contained in:
24
vendor/github.com/juju/errors/Makefile
generated
vendored
Normal file
24
vendor/github.com/juju/errors/Makefile
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
PROJECT := github.com/juju/errors
|
||||
|
||||
.PHONY: check-licence check-go check docs
|
||||
|
||||
check: check-licence check-go
|
||||
go test $(PROJECT)/...
|
||||
|
||||
check-licence:
|
||||
@(fgrep -rl "Licensed under the LGPLv3" --exclude *.s .;\
|
||||
fgrep -rl "MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT" --exclude *.s .;\
|
||||
find . -name "*.go") | sed -e 's,\./,,' | sort | uniq -u | \
|
||||
xargs -I {} echo FAIL: licence missed: {}
|
||||
|
||||
check-go:
|
||||
$(eval GOFMT := $(strip $(shell gofmt -l .| sed -e "s/^/ /g")))
|
||||
@(if [ x$(GOFMT) != x"" ]; then \
|
||||
echo go fmt is sad: $(GOFMT); \
|
||||
exit 1; \
|
||||
fi )
|
||||
@(go tool vet -all -composites=false -copylocks=false .)
|
||||
|
||||
docs:
|
||||
godoc2md github.com/juju/errors > README.md
|
||||
sed -i 's|\[godoc-link-here\]|[](https://godoc.org/github.com/juju/errors)|' README.md
|
Reference in New Issue
Block a user