Skip to content

Commit

Permalink
Vendorise dependency on dcos-commons/cli. (mesosphere-backup#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssk2 authored and nickbp committed May 11, 2017
1 parent 253e200 commit a119da2
Show file tree
Hide file tree
Showing 46 changed files with 10,797 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Prevent jenkins from immediately killing the script when a step fails, allowing us to notify github:
set +e

REPO_ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export REPO_ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $REPO_ROOT_DIR

# Grab dcos-commons build/release tools:
Expand Down
23 changes: 20 additions & 3 deletions cli/build-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,26 @@ if [ -z "$GOPATH" -o -z "$(which go)" ]; then
exit 1
fi


REPO_NAME=dcos-cassandra-service
ORG_PATH=${ORG_PATH:=github.com/mesosphere}
GOPATH_ORG="$GOPATH/src/$ORG_PATH"
GOPATH_EXE_DIR="$GOPATH_ORG/$REPO_NAME/cli/dcos-cassandra"

# Add symlink from GOPATH which points into the repository directory:
SYMLINK_LOCATION="$GOPATH_ORG/$REPO_NAME"

if [ ! -h "$SYMLINK_LOCATION" -o "$(readlink $SYMLINK_LOCATION)" != "$REPO_ROOT_DIR" ]; then
echo "Creating symlink from GOPATH=$SYMLINK_LOCATION to REPOPATH=$REPO_ROOT_DIR"
rm -rf "$SYMLINK_LOCATION"
mkdir -p "$GOPATH_ORG"
cd $GOPATH_ORG
ln -s "$REPO_ROOT_DIR" $REPO_NAME
fi

# Run 'go get'/'go build' from within GOPATH:
cd $GOPATH_EXE_DIR

# The name of the binary produced by Go:
if [ -z "$EXE_NAME" ]; then
EXE_NAME="dcos-cassandra"
Expand All @@ -24,9 +44,6 @@ print_file_and_shasum() {

# ---

# go (static binaries containing the CLI itself)
cd $EXE_NAME/

# this may be omitted in 1.6+, left here for compatibility with 1.5:
export GO15VENDOREXPERIMENT=1

Expand Down
27 changes: 27 additions & 0 deletions cli/vendor/github.com/alecthomas/template/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions cli/vendor/github.com/alecthomas/template/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a119da2

Please sign in to comment.