fix: go doesn't allow gnu short flags

This commit is contained in:
Steven Allen 2021-02-08 12:49:51 -08:00
parent fed5f05134
commit 82e6674099
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
//go:generate git submodule update --init ./dir-index-html
//go:generate go run github.com/go-bindata/go-bindata/v3/go-bindata -mode=0644 -modtime=1403768328 -pkg=assets init-doc dir-index-html/dir-index.html dir-index-html/knownIcons.txt
//go:generate gofmt -sw bindata.go
//go:generate gofmt -s -w bindata.go
//go:generate sh -c "sed -i \"s/.*BindataVersionHash.*/BindataVersionHash=\\\"$(git hash-object bindata.go)\\\"/\" bindata_version_hash.go"
//go:generate gofmt -sw bindata_version_hash.go
//go:generate gofmt -s -w bindata_version_hash.go
package assets
import (

View File

@ -4,7 +4,7 @@ T="$(mktemp)"
find . \
-path ./test/sharness -prune \
-o -path ./plugin/loader/preload.go -prune \
-o -name '*.go' -print0 | xargs -0 gofmt -sl > "$T"
-o -name '*.go' -print0 | xargs -0 gofmt -s -l > "$T"
if [ -n "$(cat $T)" ]; then
echo "Following Go code is not formatted."