fix(pokt)

closes #4971
This commit is contained in:
Jacob Heider 2024-01-24 13:43:09 -05:00 committed by Jacob Heider
parent 1026fcda6a
commit 37b48548b1

View file

@ -9,21 +9,18 @@ versions:
provides: provides:
- bin/pocket - bin/pocket
dependencies:
go.dev: ^1.18
build: build:
dependencies: dependencies:
go.dev: ^1.18 go.dev: ^1.18
script: | script: |
go build -o pocket ./app/cmd/pocket_core/main.go go build -ldflags="$GO_LDFLAGS" -o pocket ./app/cmd/pocket_core/main.go
mkdir -p "{{ prefix }}"/bin mkdir -p "{{ prefix }}"/bin
mv pocket "{{ prefix }}"/bin mv pocket "{{ prefix }}"/bin
env:
linux:
GO_LDFLAGS:
- -buildmode=pie
test: test:
script: | - pocket version
pocket --help >> /tmp/pocket.help - pocket version | grep {{version}}
if ! grep -q "Pocket is a distributed network that relays data" /tmp/pocket.help; then
echo "Error: Pocket was not installed successfully"
exit 1
fi