+github.com/clever/microplane (#185)

* +github.com/clever/microplane

* better test for microplane
---------

Co-authored-by: Max Howell <mxcl@me.com>
This commit is contained in:
John Allen 2023-02-26 13:54:21 -05:00 committed by GitHub
parent bfed76aa87
commit 54aab0c5ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 1 deletions

View file

@ -74,8 +74,11 @@ with their pull request then you can use GitHubs CLI:
```
$ gh pr checkout 123
# or you can copy paste the URL
# or you can copy paste the URL:
$ gh pr checkout https://github.com/teaxyz/pantry.extra/pull/123
# then open for editing:
$ pkg edit
```
&nbsp;

View file

@ -0,0 +1,36 @@
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: |
echo "teaxyz/pantry.extra" > repos.txt
mp init -f repos.txt
# mp clone
# ^^ FIXME fails with exit code 128
mp status