Ver código fonte

Makefile: add update-glide rule to only vendor code

Strips test cases and non-code assets from vendored packages.
Anthony Romano 8 anos atrás
pai
commit
756706df41
1 arquivos alterados com 6 adições e 0 exclusões
  1. 6 0
      Makefile

+ 6 - 0
Makefile

@@ -68,6 +68,12 @@ gofmt-fix:
 license-check:
 	./license-check.sh
 
+update-glide:
+	# go get -d -u github.com/Masterminds/glide
+	glide update --strip-vendor
+	# go get -d -u github.com/sgotti/glide-vc
+	glide vc --only-code --no-tests
+
 clean:
 	rm -f dist/flanneld*
 	rm -f dist/iptables*