mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
fix: go doesn't allow gnu short flags
This commit is contained in:
parent
fed5f05134
commit
82e6674099
@ -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 (
|
||||
|
||||
@ -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."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user