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