2023-02-26 21:54:21 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/clever/microplane/archive/refs/tags/v{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: clever/microplane/tags
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
git-scm.org: ^2
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/mp
|
|
|
|
|
|
|
|
build:
|
|
|
|
script: |
|
|
|
|
go mod download
|
|
|
|
go build -v -ldflags="$LDFLAGS" -o "{{ prefix }}"/bin/mp
|
|
|
|
dependencies:
|
|
|
|
go.dev: ^1.18
|
|
|
|
env:
|
|
|
|
LDFLAGS:
|
|
|
|
- -s
|
|
|
|
- -w
|
|
|
|
- -X main.version=v{{ version }}
|
|
|
|
linux:
|
|
|
|
# or segmentation fault
|
|
|
|
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
|
|
|
LDFLAGS:
|
|
|
|
- -buildmode=pie
|
|
|
|
|
|
|
|
test: |
|
2023-03-14 23:41:37 +03:00
|
|
|
echo "teaxyz/pantry" > repos.txt
|
2023-02-26 21:54:21 +03:00
|
|
|
mp init -f repos.txt
|
|
|
|
# mp clone
|
|
|
|
# ^^ FIXME fails with exit code 128
|
|
|
|
mp status
|