From 37b48548b1165d02d9e29e57621a05583483fdbb Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Wed, 24 Jan 2024 13:43:09 -0500 Subject: [PATCH] fix(pokt) closes #4971 --- projects/pokt.network/package.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/projects/pokt.network/package.yml b/projects/pokt.network/package.yml index 77979b75..602e9ea1 100644 --- a/projects/pokt.network/package.yml +++ b/projects/pokt.network/package.yml @@ -9,21 +9,18 @@ versions: provides: - bin/pocket -dependencies: - go.dev: ^1.18 - build: dependencies: go.dev: ^1.18 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 mv pocket "{{ prefix }}"/bin + env: + linux: + GO_LDFLAGS: + - -buildmode=pie test: - script: | - pocket --help >> /tmp/pocket.help - 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 + - pocket version + - pocket version | grep {{version}}