+github.com/nishanths/license (#145)

This commit is contained in:
David Roman 2023-01-28 13:20:04 +00:00 committed by GitHub
parent 052f409e53
commit 6a582df5bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,30 @@
distributable:
url: https://github.com/nishanths/license/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
warnings:
- vendored
versions:
github: nishanths/license
provides:
- bin/license
build:
dependencies:
go.dev: '*'
env:
LDFLAGS:
- -X=main.version={{version}}
linux:
# or segmentation fault
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
LDFLAGS:
- -buildmode=pie
script: |
# cd ./cmd/xc
GOBIN={{prefix}}/bin go install -ldflags="$LDFLAGS" .
test: |
license --version