mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 19:35:41 +03:00
Install versioned release of codecgen
Gets us one step closer to a reproducible build. Also removes the unused vendored version.
This commit is contained in:
12
scripts/install-codecgen.sh
Normal file
12
scripts/install-codecgen.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
# Match entry in vendor.json
|
||||
GIT_TAG="v1.1.2"
|
||||
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
|
||||
Reference in New Issue
Block a user