746eb2835f
This PS bumps up GoLang version to 1.21.11 to fix critical CVEs. Change-Id: I2461ae94c8d30195afeb1eb05787bd2323097707
20 lines
432 B
Bash
Executable File
20 lines
432 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Install golang-go package, and build the baclient library
|
|
set -x
|
|
|
|
if $(uname -a | grep -q Ubuntu); then
|
|
GOPATH=$1
|
|
BUILD_DIR=$2
|
|
if [[ ! -f ./baclient_built ]]; then
|
|
whereis go
|
|
go env
|
|
GO111MODULE=off GOPATH=${GOPATH} go build -v -o ${BUILD_DIR}/baclient baclient
|
|
else
|
|
echo "Baclient library is already built. No action."
|
|
fi
|
|
else
|
|
echo "Only support testing on Ubuntu hosts at this time."
|
|
fi
|
|
|