go vet and fix #1890

This commit is contained in:
Unknwon 2015-11-08 14:31:49 -05:00
parent 58436b5ea5
commit b55499d039
11 changed files with 30 additions and 20 deletions

View file

@ -13,8 +13,10 @@ build:
go install -ldflags '$(LDFLAGS)' -tags '$(TAGS)'
go build -ldflags '$(LDFLAGS)' -tags '$(TAGS)'
govet:
go tool vet -composites=false -methods=false -structtags=false .
pack:
find . -name ".DS_Store" -print0 | xargs -0 rm
rm -rf $(RELEASE_GOGS)
mkdir -p $(RELEASE_GOGS)
cp -r gogs LICENSE README.md README_ZH.md templates public scripts $(RELEASE_GOGS)
@ -27,4 +29,7 @@ bindata:
go-bindata -o=modules/bindata/bindata.go -ignore="\\.DS_Store|README.md" -pkg=bindata conf/...
clean:
go clean -i ./...
go clean -i ./...
clean-mac: clean
find . -name ".DS_Store" -print0 | xargs -0 rm