mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-02 07:26:13 +00:00
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:
@@ -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..."
|
||||
|
Reference in New Issue
Block a user