Skip to content

Commit

Permalink
Move third_party code under third_party/src so it can be used in $GOP…
Browse files Browse the repository at this point in the history
…ATH.
  • Loading branch information
jbeda committed Jun 14, 2014
1 parent a40529b commit d230625
Show file tree
Hide file tree
Showing 127 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion hack/config-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ KUBE_GO_PACKAGE_DIR="${GOPATH}/src/${KUBE_GO_PACKAGE}"
fi

rm "${PACKAGE_DIR}" >/dev/null 2>&1 || true
ln -s "${THIRD_PARTY_BASE}/${p}" "${PACKAGE_DIR}"
ln -s "${THIRD_PARTY_BASE}/src/${p}" "${PACKAGE_DIR}"
done

for p in ${PACKAGES}; do
Expand Down
2 changes: 1 addition & 1 deletion hooks/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

errors=0
for file in $(git diff --cached --name-only | grep "\.go"); do
for file in $(git diff --cached --name-only --diff-filter ACM | grep "\.go" | grep -v "third_party"); do
diff="$(git show ":${file}" | gofmt -s -d)"
if [[ -n "$diff" ]]; then
echo "# *** ERROR: *** File ${file} has not been gofmt'd." >> $1
Expand Down
2 changes: 1 addition & 1 deletion release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ mkdir -p $MASTER_RELEASE_DIR/third_party/go
echo "Building release tree"
cp release/master-release-install.sh $MASTER_RELEASE_DIR/src/scripts/master-release-install.sh
cp -r cluster/saltbase $MASTER_RELEASE_DIR/src/saltbase
cp -r third_party $MASTER_RELEASE_DIR/third_party/go/src
cp -r third_party/src $MASTER_RELEASE_DIR/third_party/go/src

function find_go_files() {
find * -not \( \
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions third_party/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ cd $THIRD_PARTY_DIR
. ./deps.sh

# Create a temp GOPATH root. It must be an absolute path
mkdir -p ../target/go_dep_update
cd ../target/go_dep_update
mkdir -p ../output/go_dep_update
cd ../output/go_dep_update
TMP_GO_ROOT=$PWD
cd -
export GOPATH=${TMP_GO_ROOT}
Expand Down Expand Up @@ -50,10 +50,10 @@ for p in $PACKAGES; do
cd -

# Copy the code into the final directory
rsync -a -z -r --exclude '.git/' --exclude '.hg/' $TMP_GO_ROOT/src/$p/ $p
rsync -a -z -r --exclude '.git/' --exclude '.hg/' $TMP_GO_ROOT/src/$p/ src/$p

# Make a nice commit about what everything bumped to
git add $p
git add src/$p
if ! git diff --cached --exit-code > /dev/null 2>&1; then
git commit -m "bump($p): $HEAD"
fi
Expand Down

0 comments on commit d230625

Please sign in to comment.