diff --git a/Taskfile.yml b/Taskfile.yml index 777bee23..d0712bcf 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -53,7 +53,7 @@ tasks: GORELEASER_VERSION: "0.159.0" GOLINTER_VERSION: "1.46.2" cmds: - - go install github.com/gobuffalo/packr/v2@latest + - go install github.com/gobuffalo/packr/...@v1.10.4 - go install github.com/snikch/goodman/cmd/goodman@latest - go install github.com/go-swagger/go-swagger/cmd/swagger@latest - '{{ if ne OS "windows" }} sh -c "curl -L https://github.com/goreleaser/goreleaser/releases/download/v{{ .GORELEASER_VERSION }}/goreleaser_$(uname -s)_$(uname -m).tar.gz | tar -xz -C $(go env GOPATH)/bin goreleaser"{{ else }} {{ end }}' @@ -99,7 +99,7 @@ tasks: cmds: - mkdir -p web2/dist - go run util/version_gen/generator.go {{ if .TAG }}{{ .TAG }}{{ else }}{{ if .SEMAPHORE_VERSION }}{{ .SEMAPHORE_VERSION }}{{ else }}{{ .BRANCH }}-{{ .SHA }}-{{ .TIMESTAMP }}{{ if .DIRTY }}-dirty{{ end }}{{ end }}{{end}} - - packr2 --legacy + - packr vars: TAG: sh: git name-rev --name-only --tags --no-undefined HEAD 2>/dev/null | sed -n 's/^\([^^~]\{1,\}\)\(\^0\)\{0,1\}$/\1/p'