Debian Codegraph @

internal/kokoro/synth/synth.sh

raw symbols SCIP
1 #!/bin/bash
2
3 # Copyright 2020 Google LLC.
4 # Use of this source code is governed by a BSD-style
5 # license that can be found in the LICENSE file.
6
7 set -e -x
8
9 cd $(dirname $0)/../../..
10
11 tempdir=$(mktemp -d)
12 sudo apt-get update && sudo apt-get install -y jq
13 GOVERSION=$(curl https://golang.org/dl/?mode=json | jq ".[0].version" | sed s/\"//g) &&
14 curl -o /tmp/go.tgz https://dl.google.com/go/${GOVERSION}.linux-amd64.tar.gz &&
15 tar -C $tempdir -xzf /tmp/go.tgz &&
16 rm /tmp/go.tgz &&
17 export PATH=$tempdir/go/bin:$PATH &&
18 export GOROOT=$tempdir/go
19
20 go version
21 go env
22
23 pushd google-api-go-generator
24 make all
25 popd