소스 검색

scripts: updatedep.sh to update vendored dependencies

Running godep in the vendored cmd directory will try to pull etcd in
as a dependency. As a fix, this script safely vendors into cmd.
Anthony Romano 10 년 전
부모
커밋
ac232ac9a7
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 12 0
      scripts/updatedep.sh

+ 12 - 0
scripts/updatedep.sh

@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+# A script for updating godep dependencies for the vendored directory /cmd/
+# without pulling in etcd itself as a dependency.
+
+rm -rf Godeps vendor
+ln -s cmd/vendor vendor
+godep save ./...
+rm -rf cmd/Godeps
+rm vendor
+mv Godeps cmd/
+