changed scripts to use godep

This commit is contained in:
Nan Monnand Deng 2014-08-12 12:08:19 -04:00
parent 67f0737ec0
commit eb462eba06
3 changed files with 4 additions and 2 deletions

View File

@ -59,7 +59,7 @@ mkdir -p "${KUBE_GO_PACKAGE_BASEDIR}"
# Create symlink under output/go/src.
ln -snf "${KUBE_REPO_ROOT}" "${KUBE_GO_PACKAGE_DIR}"
GOPATH="${KUBE_TARGET}:${KUBE_REPO_ROOT}/third_party"
GOPATH="${KUBE_TARGET}:`godep path`"
export GOPATH
# Unset GOBIN in case it already exsits in the current session.

View File

@ -25,9 +25,11 @@ find_test_dirs() {
find . -not \( \
\( \
-wholename './third_party' \
-wholename './Godeps' \
-o -wholename './release' \
-o -wholename './target' \
-o -wholename '*/third_party/*' \
-o -wholename '*/Godeps/*' \
-o -wholename '*/output/*' \
\) -prune \
\) -name '*_test.go' -print0 | xargs -0n1 dirname | sort -u | xargs -n1 printf "${KUBE_GO_PACKAGE}/%s\n"

View File

@ -26,7 +26,7 @@ fi
REPO_ROOT="$(cd "$(dirname "$0")/../" && pwd -P)"
files="$(find ${REPO_ROOT} -type f | grep "[.]go$" | grep -v "third_party/\|release/\|output/\|target/")"
files="$(find ${REPO_ROOT} -type f | grep "[.]go$" | grep -v "third_party/\|release/\|output/\|target/\|Godeps/")"
bad=$(gofmt -s -l ${files})
if [[ -n "${bad}" ]]; then
echo "$bad"