mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
fix segmentation fault on linux
This commit is contained in:
parent
b732b4472d
commit
09dcb113f3
1 changed files with 9 additions and 2 deletions
|
@ -9,11 +9,18 @@ versions:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
script: |
|
script: |
|
||||||
go build
|
go build -ldflags="$LDFLAGS"
|
||||||
mkdir -p "{{ prefix }}"/bin
|
mkdir -p "{{ prefix }}"/bin
|
||||||
mv hugo "{{ prefix }}"/bin
|
mv hugo "{{ prefix }}"/bin
|
||||||
dependencies:
|
dependencies:
|
||||||
go.dev: ^1.18 # probs higher than is true
|
go.dev: ^1.18 # probs higher than is true
|
||||||
|
env:
|
||||||
|
LDFLAGS:
|
||||||
|
- -s -w
|
||||||
|
linux:
|
||||||
|
# or segmentation fault
|
||||||
|
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
||||||
|
LDFLAGS:
|
||||||
|
- -buildmode=pie
|
||||||
test:
|
test:
|
||||||
hugo version
|
hugo version
|
||||||
|
|
Loading…
Reference in a new issue