Fix statik tooling

This commit is contained in:
Denis Arh
2018-10-09 07:36:50 +02:00
parent 53940d6be9
commit 2924334f47
4 changed files with 7 additions and 4 deletions
+4 -1
View File
@@ -52,13 +52,16 @@ docker-push.%: %
realize: $(REALIZE)
$(REALIZE) start
dep.codegen:
go install github.com/rakyll/statik
dep.update: $(DEP)
$(DEP) ensure -update -v
dep: $(DEP)
$(DEP) ensure -v
codegen: $(SPEC)
codegen: $(SPEC) dep.codegen
@PATH=${PATH}:${GOPATH}/bin ./codegen.sh
protobuf: $(PROTOC)
+1 -1
View File
@@ -15,7 +15,7 @@ import (
"github.com/titpetric/factory"
)
//go:generate statik -p mysql -m -Z -f -src=schema/mysql
//go:generate $GOPATH/bin/statik -p mysql -m -Z -f -src=schema/mysql
func statements(contents []byte, err error) ([]string, error) {
if err != nil {
+1 -1
View File
@@ -15,7 +15,7 @@ import (
"github.com/titpetric/factory"
)
//go:generate statik -p mysql -m -Z -f -src=schema/mysql
//go:generate $GOPATH/bin/statik -p mysql -m -Z -f -src=schema/mysql
func statements(contents []byte, err error) ([]string, error) {
if err != nil {
+1 -1
View File
@@ -15,7 +15,7 @@ import (
"github.com/titpetric/factory"
)
//go:generate statik -p mysql -m -Z -f -src=schema/mysql
//go:generate $GOPATH/bin/statik -p mysql -m -Z -f -src=schema/mysql
func statements(contents []byte, err error) ([]string, error) {
if err != nil {