rm -rf kubeless
mkdir kubeless
export GOPATH=`pwd`/kubeless
git clone --depth 1 https://github.com/kubeless/kubeless $GOPATH/src/github.com/kubeless/kubeless
( cd $GOPATH/src/github.com/kubeless/kubeless
  go get -v -d .
)
tar -c -f- --exclude .git kubeless | xz -9 >kubeless-`date '+%Y%m%d'`.tar.xz
rm -rf kubeless
