From 532a55ff6eb542548d7f4694f36aae7ff9e28656 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Thu, 7 Mar 2024 18:32:55 -0500 Subject: [PATCH] fix(git-town) closes #5191 closes #5214 closes #5418 --- projects/git-town.com/package.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/projects/git-town.com/package.yml b/projects/git-town.com/package.yml index 4c2889d4..0bf7b51b 100644 --- a/projects/git-town.com/package.yml +++ b/projects/git-town.com/package.yml @@ -11,10 +11,9 @@ provides: build: dependencies: go.dev: ^1.19 - script: | - go mod download - mkdir -p "{{ prefix }}"/bin - go build -v -trimpath -ldflags="$LDFLAGS" -o $BUILDLOC . + script: + - go mod download + - go build -v -trimpath -ldflags="$LDFLAGS" -o $BUILDLOC . env: GOPROXY: https://proxy.golang.org,direct GOSUMDB: sum.golang.org @@ -29,11 +28,13 @@ build: # or segmentation fault # fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575 LDFLAGS: - - -buildmode=pie + - -buildmode=pie test: script: - run: test "$(git-town version)" = "Git Town {{version}} ()" if: <10 - 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'