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:
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'