20effc67 TL |
1 | #!/bin/sh -ex |
2 | |
3 | JSONNET_VERSION="v0.18.0" |
4 | OUTPUT_DIR=${1:-$(pwd)} |
5 | |
6 | git clone -b ${JSONNET_VERSION} --depth 1 https://github.com/google/go-jsonnet.git |
7 | cd go-jsonnet |
8 | go build ./cmd/jsonnet |
9 | go build ./cmd/jsonnetfmt |
10 | mv jsonnet jsonnetfmt ${OUTPUT_DIR} |