diff --git a/ci-build.sh b/ci-build.sh index 4fd31d0..07ca43a 100755 --- a/ci-build.sh +++ b/ci-build.sh @@ -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} diff --git a/cmd/qrz/qrz.go b/cmd/qrz/qrz.go index 173c390..98f39c0 100644 --- a/cmd/qrz/qrz.go +++ b/cmd/qrz/qrz.go @@ -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" )