From 2c47cc1ee642ca197816e8289c8e5501adf24af6 Mon Sep 17 00:00:00 2001 From: Kishan B Date: Wed, 31 Jan 2024 22:56:24 +0530 Subject: [PATCH] Add tf-import-gen command (#5060) * Add tf-import-gen command * expand test for testing * fix version --------- Co-authored-by: Jacob Heider --- .../kishaningithub/tf-import-gen/package.yml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 projects/github.com/kishaningithub/tf-import-gen/package.yml diff --git a/projects/github.com/kishaningithub/tf-import-gen/package.yml b/projects/github.com/kishaningithub/tf-import-gen/package.yml new file mode 100644 index 00000000..a8ffb081 --- /dev/null +++ b/projects/github.com/kishaningithub/tf-import-gen/package.yml @@ -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}}"