fix(git-town)

closes #3930
This commit is contained in:
Jacob Heider 2023-11-01 23:04:15 -04:00
parent 5fba973743
commit 859607780e
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6

View file

@ -24,7 +24,7 @@ build:
LDFLAGS: LDFLAGS:
- -s - -s
- -w - -w
- -X github.com/git-town/git-town/v9/src/cmd.version={{version}} - -X github.com/git-town/git-town/v{{version.major}}/src/cmd.version={{version}}
linux: linux:
# or segmentation fault # or segmentation fault
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575 # fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
@ -33,4 +33,7 @@ build:
test: test:
script: script:
- test "$(git-town version)" = "Git Town {{version}} ()" - run: test "$(git-town version)" = "Git Town {{version}} ()"
if: <10
- run: test "$(git-town --version)" = "Git Town {{version}} ()"
if: '>=10'