+github.com/everywall/ladder (#4293)

* new file:   projects/github.com/everywall/ladder/package.yml

* let's try 8081 port

* let's try to find free port

* set 8082 port

i want to get rid of using`nc`

* go version

---------

Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
Andrew 2023-12-04 19:08:20 +02:00 committed by GitHub
parent 33dc169235
commit af708fd95d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,39 @@
distributable:
url: https://github.com/everywall/ladder/archive/v{{version}}.tar.gz
strip-components: 1
versions:
github: everywall/ladder
build:
dependencies:
go.dev: ^1.21.1
script:
- echo '{{version}}' > handlers/VERSION
- go build $GO_ARGS -ldflags="$LDFLAGS" ./cmd
env:
GO_ARGS:
- -trimpath
- -o="{{prefix}}/bin/ladder"
LDFLAGS:
- -s
- -w
linux:
LDFLAGS:
- -buildmode=pie
provides:
- bin/ladder
test:
dependencies:
curl.se: '*'
linux:
gitlab.com/procps-ng/procps: '*'
script:
- ladder -p 8082 &
- sleep 1
- curl -L http://127.0.0.1:8082/https://pkgx.sh -o test.html
- $KILL ladder
- cat test.html | grep 'Run Anything'
env:
darwin:
KILL: killall
linux:
KILL: pkill