fix(git-town)

closes #5191
closes #5214
closes #5418
This commit is contained in:
Jacob Heider 2024-03-07 18:32:55 -05:00
parent bdc6051926
commit 532a55ff6e
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6

View file

@ -11,10 +11,9 @@ provides:
build: build:
dependencies: dependencies:
go.dev: ^1.19 go.dev: ^1.19
script: | script:
go mod download - go mod download
mkdir -p "{{ prefix }}"/bin - go build -v -trimpath -ldflags="$LDFLAGS" -o $BUILDLOC .
go build -v -trimpath -ldflags="$LDFLAGS" -o $BUILDLOC .
env: env:
GOPROXY: https://proxy.golang.org,direct GOPROXY: https://proxy.golang.org,direct
GOSUMDB: sum.golang.org GOSUMDB: sum.golang.org
@ -36,4 +35,6 @@ test:
- run: test "$(git-town version)" = "Git Town {{version}} ()" - run: test "$(git-town version)" = "Git Town {{version}} ()"
if: <10 if: <10
- run: test "$(git-town --version)" = "Git Town {{version}} ()" - run: test "$(git-town --version)" = "Git Town {{version}} ()"
if: '>=10' if: '>=10<12.0.1'
- run: test "$(git-town --version)" = "Git Town {{version}}"
if: '>=12.0.1'