mirror of
https://github.com/ivabus/pantry
synced 2024-11-12 19:45:19 +03:00
parent
5032d5e9c8
commit
8c1cb10cc3
|
@ -7,19 +7,10 @@ versions:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
# panic: Something in this program imports
|
go.dev: ~1.22.3
|
||||||
# go4.org/unsafe/assume-no-moving-gc to declare that it assumes a non-moving
|
script:
|
||||||
# garbage collector, but your version of go4.org/unsafe/assume-no-moving-gc
|
- go mod download
|
||||||
# hasn't been updated to assert that it's safe against the go1.20 runtime.
|
- go build -v -ldflags="$LDFLAGS" -o "{{prefix}}"/bin/gomplate ./cmd/gomplate
|
||||||
# If you want to risk it, run with environment variable
|
|
||||||
# ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.20 set. Notably, if go1.20
|
|
||||||
# adds a moving garbage collector, this program is unsafe to use.
|
|
||||||
go.dev: ~1.19
|
|
||||||
script: |
|
|
||||||
go mod download
|
|
||||||
go build -v -ldflags="$LDFLAGS" ./cmd/gomplate
|
|
||||||
mkdir -p "{{prefix}}"/bin
|
|
||||||
mv gomplate "{{prefix}}"/bin
|
|
||||||
env:
|
env:
|
||||||
LDFLAGS:
|
LDFLAGS:
|
||||||
- -s
|
- -s
|
||||||
|
@ -29,7 +20,7 @@ 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
|
||||||
LDFLAGS:
|
LDFLAGS:
|
||||||
- -buildmode=pie
|
- -buildmode=pie
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/gomplate
|
- bin/gomplate
|
||||||
|
@ -37,6 +28,6 @@ provides:
|
||||||
test:
|
test:
|
||||||
fixture: |
|
fixture: |
|
||||||
Hello, {{ .Env.USER }}
|
Hello, {{ .Env.USER }}
|
||||||
script: |
|
script:
|
||||||
test "$(gomplate < $FIXTURE)" = "Hello, $USER"
|
- test "$(gomplate < $FIXTURE)" = "Hello, $USER"
|
||||||
test "$(gomplate --version)" = "gomplate version {{version}}"
|
- test "$(gomplate --version)" = "gomplate version {{version}}"
|
||||||
|
|
Loading…
Reference in a new issue