fix(ipfs)

closes #3541
This commit is contained in:
Jacob Heider 2023-10-05 14:49:54 -04:00
parent 64202b75fd
commit 5912c69453
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6

View file

@ -8,18 +8,17 @@ versions:
build:
dependencies:
go.dev: '>=1.18<1.20'
go.dev: '>=1.20'
gnu.org/patch: '*'
script: |
if test "{{hw.platform}}" = "linux"; then
# Need to pass -buildmode=pie to the build
# or segmentation fault
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
patch -p1 <props/ldflags.diff
fi
make build CGO_ENABLED=0
mkdir -p {{prefix}}/bin
mv cmd/ipfs/ipfs {{prefix}}/bin
script:
# Need to pass -buildmode=pie to the build
# or segmentation fault
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
- run: patch -p1 <props/ldflags.diff
if: linux
- make build CGO_ENABLED=0
- mkdir -p {{prefix}}/bin
- mv cmd/ipfs/ipfs {{prefix}}/bin
test:
script: