changes in generate pre-commands
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
518fcc5d9d
commit
bd59c5db6e
@ -28,9 +28,6 @@ build() {
|
|||||||
RELEASENAME=${PROJECTNAME}-${VERSION}-${GOOS}-${GOARCH}
|
RELEASENAME=${PROJECTNAME}-${VERSION}-${GOOS}-${GOARCH}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Getting packr2 and building embedded files"
|
|
||||||
go get -u github.com/gobuffalo/packr/v2/packr2
|
|
||||||
|
|
||||||
echo "Building project"
|
echo "Building project"
|
||||||
go generate ${SRCFILES}
|
go generate ${SRCFILES}
|
||||||
go build -o ${PROJECTNAME} ${GOOPTIONS} ${SRCFILES}
|
go build -o ${PROJECTNAME} ${GOOPTIONS} ${SRCFILES}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//go:generate packr2 -v
|
//go:generate go run github.com/gobuffalo/packr/v2/packr2@latest -v
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
@ -10,6 +10,7 @@ import (
|
|||||||
"git.paulbsd.com/paulbsd/qrz/src/qrz"
|
"git.paulbsd.com/paulbsd/qrz/src/qrz"
|
||||||
"git.paulbsd.com/paulbsd/qrz/src/qrzws"
|
"git.paulbsd.com/paulbsd/qrz/src/qrzws"
|
||||||
"github.com/gobuffalo/packr/v2"
|
"github.com/gobuffalo/packr/v2"
|
||||||
|
_ "github.com/gobuffalo/packr/v2/file/resolver"
|
||||||
_ "github.com/lib/pq"
|
_ "github.com/lib/pq"
|
||||||
_ "github.com/spf13/cobra"
|
_ "github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user