26 lines
531 B
Plaintext
26 lines
531 B
Plaintext
echo "Updating the dependencies"
|
|
{
|
|
cp ./common/common_easyjson.tgo ./common/common_easyjson.go
|
|
} || {
|
|
echo "Failed to copy bundled generated easyjson file"
|
|
}
|
|
|
|
{
|
|
GO111MODULE="off"
|
|
go get -u github.com/mailru/easyjson/...
|
|
} || {
|
|
echo "Defaulting to bundled generated easyjson file"
|
|
}
|
|
GO111MODULE="auto"
|
|
{
|
|
easyjson -pkg common
|
|
} || {
|
|
echo "Defaulting to bundled generated easyjson file"
|
|
}
|
|
|
|
echo "Building the query generator"
|
|
go build -ldflags="-s -w" -o QGen "./cmd/query_gen"
|
|
echo "Running the query generator"
|
|
./QGen
|
|
|
|
go get |