changes in generate pre-commands
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2021-11-13 11:47:16 +01:00
parent 518fcc5d9d
commit bd59c5db6e
2 changed files with 2 additions and 4 deletions

View File

@ -28,9 +28,6 @@ build() {
RELEASENAME=${PROJECTNAME}-${VERSION}-${GOOS}-${GOARCH}
fi
echo "Getting packr2 and building embedded files"
go get -u github.com/gobuffalo/packr/v2/packr2
echo "Building project"
go generate ${SRCFILES}
go build -o ${PROJECTNAME} ${GOOPTIONS} ${SRCFILES}

View File

@ -1,4 +1,4 @@
//go:generate packr2 -v
//go:generate go run github.com/gobuffalo/packr/v2/packr2@latest -v
package main
@ -10,6 +10,7 @@ import (
"git.paulbsd.com/paulbsd/qrz/src/qrz"
"git.paulbsd.com/paulbsd/qrz/src/qrzws"
"github.com/gobuffalo/packr/v2"
_ "github.com/gobuffalo/packr/v2/file/resolver"
_ "github.com/lib/pq"
_ "github.com/spf13/cobra"
)