Skip to content

Commit

Permalink
+wait4x
Browse files Browse the repository at this point in the history
 closes #7844
  • Loading branch information
jhheider committed Nov 7, 2024
1 parent 62a658a commit ce792b1
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions projects/wait4x.dev/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
distributable:
url: https://github.com/atkrad/wait4x/archive/refs/tags/{{version.tag}}.tar.gz
strip-components: 1

versions:
github: atkrad/wait4x

provides:
- bin/wait4x

companions:
curl.se/ca-certs: '*'

build:
dependencies:
go.dev: ~1.22
script: go build $GO_ARGS -ldflags="$GO_LDFLAGS" -o {{prefix}}/bin/wait4x cmd/wait4x/main.go
env:
GO_ARGS:
- -v
- -trimpath
GO_LDFLAGS:
- -s
- -w
- -buildid=
- -X wait4x.dev/v2/internal/app/wait4x/cmd.BuildTime=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
- -X wait4x.dev/v2/internal/app/wait4x/cmd.AppVersion={{version}}
linux:
# or segmentation fault
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
GO_LDFLAGS:
- -buildmode=pie

test: wait4x http https://pkgx.dev --expect-status-code 200 --timeout 30s

0 comments on commit ce792b1

Please sign in to comment.