mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-11-18 11:21:25 +00:00
Add go to path instead of GO_BIN
This commit is contained in:
parent
5894fc8ba8
commit
7aca3e10a1
@ -6,11 +6,11 @@ source hack/bazel_setup.sh
|
||||
|
||||
$BAZEL_B @go_sdk//...
|
||||
|
||||
GO_BIN="$(bazel info output_base)/external/go_sdk/bin/go"
|
||||
export PATH="$(bazel info output_base)/external/go_sdk/bin:$PATH"
|
||||
|
||||
if [[ -n $($GO_BIN fmt -n $(go list ./... | grep -v /vendor/) | sed 's/ -w//') ]]; then
|
||||
if [[ -z $(go fmt -n $(go list ./... | grep -v /vendor/) | sed 's/ -w//') ]]; then
|
||||
echo "Go files must be formatted with gofmt. Please run:"
|
||||
echo " go fmt $(go list ./... | grep -v /vendor/)"
|
||||
echo ' go fmt $(go list ./... | grep -v /vendor/)'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user