瀏覽代碼

Makefile: add update-glide rule to only vendor code

Strips test cases and non-code assets from vendored packages.
Anthony Romano 8 年之前
父節點
當前提交
756706df41
共有 1 個文件被更改,包括 6 次插入0 次删除
  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*