pantry/projects/cuelang.org/package.yml

33 lines
726 B
YAML
Raw Permalink Normal View History

distributable:
url: https://github.com/cue-lang/cue/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
versions:
github: cue-lang/cue/tags
2023-02-03 04:17:03 +03:00
ignore: /-beta\./
provides:
- bin/cue
build:
script: |
go mod download
go build -v -ldflags="$LDFLAGS" -o "{{ prefix }}"/bin/cue ./cmd/cue
dependencies:
go.dev: ^1.18
env:
LDFLAGS:
- -s
- -w
- -X cuelang.org/go/cmd/cue/cmd.version=v{{ version }}
linux:
# or segmentation fault
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
LDFLAGS:
- -buildmode=pie
test:
script: |
out=$(cue export data.cue --out yaml)
test "$out" = "project: cuelang.org"