github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/update-deps-linux (about) 1 echo "Updating the dependencies" 2 { 3 cp ./common/common_easyjson.tgo ./common/common_easyjson.go 4 } || { 5 echo "Failed to copy bundled generated easyjson file" 6 } 7 8 { 9 GO111MODULE="off" 10 go get -u github.com/mailru/easyjson/... 11 } || { 12 echo "Defaulting to bundled generated easyjson file" 13 } 14 GO111MODULE="auto" 15 { 16 easyjson -pkg common 17 } || { 18 echo "Defaulting to bundled generated easyjson file" 19 } 20 21 echo "Building the hook stub generator" 22 go build -ldflags="-s -w" -o HookStubGen "./cmd/hook_stub_gen" 23 echo "Running the hook stub generator" 24 ./HookStubGen 25 26 go get