소스 검색

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*