mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 03:48:26 +00:00
944ddcf768
* go mod init; rm -rf vendor * tweak proto files and generation * go mod vendor * clean up build.go * protobuf literals in tests * downgrade gogo/protobuf
11 lines
245 B
Bash
11 lines
245 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# check there are no formatting issues
|
|
GOFMT_LINES=`gofmt -l . | wc -l | xargs`
|
|
test $GOFMT_LINES -eq 0 || echo "gofmt needs to be run, ${GOFMT_LINES} files have issues"
|
|
|
|
# run the tests for the root package
|
|
go test -race .
|