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'