Skip to content

Commit

Permalink
changed scripts to use godep
Browse files Browse the repository at this point in the history
  • Loading branch information
monnand committed Aug 13, 2014
1 parent 67f0737 commit eb462eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hack/config-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions hack/test-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion hack/verify-gofmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit eb462eb

Please sign in to comment.