Просмотр исходного кода

Makefile: add update-glide rule to only vendor code

Strips test cases and non-code assets from vendored packages.
Anthony Romano 8 лет назад
Родитель
Сommit
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*