open-nomad/scripts/install-codecgen.sh

13 lines
465 B
Bash

#!/usr/bin/env bash
set -e
# Match entry in vendor.json
GIT_TAG="08f7b401aef15f3d544472dd46bf6788cdfe55bf"
echo "Installing codec/codecgen@${GIT_TAG} ..."
# Either fetch in existing git repo or use go get to clone
git -C "$(go env GOPATH)"/src/github.com/ugorji/go/codec fetch -q || go get -d -u github.com/ugorji/go/codec/codecgen
git -C "$(go env GOPATH)"/src/github.com/ugorji/go/codec checkout --quiet $GIT_TAG
go install github.com/ugorji/go/codec/codecgen