Remove the moby tool from this repo

Updated go-compile to be able to compile remotely. Note I
did not update the oter users of go-compile as it does not affect
them.

Update `go get` instructions to fetch new one, or `make && make install`
will still work.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2017-04-25 14:52:25 +01:00
parent 35d8070abc
commit 252e32aac5
10 changed files with 31 additions and 1633 deletions

View File

@@ -30,6 +30,18 @@ do
ldflags="$2"
shift
;;
--clone-path)
clonepath="$2"
shift
;;
--clone)
clone="$2"
shift
;;
--commit)
commit="$2"
shift
;;
*)
echo "Unknown option $1"
exit 1
@@ -44,12 +56,22 @@ done
dir="$GOPATH/src/$package"
mkdir -p $dir
if [ -z "$clone" ]
then
mkdir -p "$dir"
cd "$dir"
# untar input
tar xf -
else
mkdir -p "$GOPATH/src/$clonepath"
cd "$GOPATH/src/$clonepath"
git clone "$clone" .
[ ! -z "$commit" ] && git checkout "$commit"
mkdir -p "$dir"
cd "$dir"
fi
# untar input
tar xf - -C $dir
cd $dir
cd "$dir"
# lint before building
>&2 echo "gofmt..."