mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
Add tf-import-gen command (#5060)
* Add tf-import-gen command * expand test for testing * fix version --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
66d21bcc8d
commit
2c47cc1ee6
25
projects/github.com/kishaningithub/tf-import-gen/package.yml
Normal file
25
projects/github.com/kishaningithub/tf-import-gen/package.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/kishaningithub/tf-import-gen/archive/refs/tags/v{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: kishaningithub/tf-import-gen
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/tf-import-gen
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: "*"
|
||||||
|
script:
|
||||||
|
- go build -v -ldflags="$LDFLAGS" -o "{{prefix}}"/bin/tf-import-gen
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
LDFLAGS:
|
||||||
|
- -s
|
||||||
|
- -w
|
||||||
|
- -X main.Version={{version}}
|
||||||
|
|
||||||
|
test:
|
||||||
|
- tf-import-gen --version
|
||||||
|
- tf-import-gen --version 2>&1 | grep -F "{{version}}"
|
Loading…
Reference in a new issue