rm -rf spire
mkdir spire
cd spire
export GOPATH=`pwd`
#mkdir -p src/github.com/spiffe
#go get -v -d github.com/spiffe/spire/...
git clone --depth 1 https://github.com/spiffe/spire src/github.com/spiffe/spire
( cd src/github.com/spiffe/spire
#  #export GO111MODULE=on
#  #go mod vendor -v
  go get -v -d
)
cd ..
#chmod -R a+rw spire
tar -c -f- --exclude .git spire | xz -9 >spire-`date '+%Y%m%d'`.tar.xz
rm -rf spire
