2018-10-27 04:12:13 +00:00
|
|
|
echo "Updating the dependencies"
|
2019-09-29 07:06:00 +00:00
|
|
|
{
|
|
|
|
cp ./common/common_easyjson.tgo ./common/common_easyjson.go
|
|
|
|
} || {
|
|
|
|
echo "Failed to copy bundled generated easyjson file"
|
|
|
|
}
|
2019-09-29 07:34:54 +00:00
|
|
|
|
2019-09-29 06:15:16 +00:00
|
|
|
{
|
2019-09-29 07:44:28 +00:00
|
|
|
GO111MODULE="off"
|
2019-09-29 07:34:54 +00:00
|
|
|
go get -u github.com/mailru/easyjson/...
|
2019-09-29 06:18:43 +00:00
|
|
|
} || {
|
|
|
|
echo "Defaulting to bundled generated easyjson file"
|
|
|
|
}
|
2019-09-29 07:44:28 +00:00
|
|
|
GO111MODULE="auto"
|
2019-09-29 07:49:20 +00:00
|
|
|
{
|
|
|
|
easyjson -pkg common
|
|
|
|
} || {
|
|
|
|
echo "Defaulting to bundled generated easyjson file"
|
|
|
|
}
|
2020-05-27 00:03:26 +00:00
|
|
|
|
|
|
|
echo "Building the query generator"
|
|
|
|
go build -ldflags="-s -w" -o QGen "./cmd/query_gen"
|
|
|
|
echo "Running the query generator"
|
|
|
|
./QGen
|
|
|
|
|
2019-09-29 07:34:54 +00:00
|
|
|
go get
|