From 28b4ffbd20ceaa9be56ff8e312eaf406010dfd1e Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Sun, 10 Mar 2024 18:49:29 +0200 Subject: [PATCH] new file: projects/github.com/kubecolor/kubecolor/package.yml --- .../kubecolor/kubecolor/package.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 projects/github.com/kubecolor/kubecolor/package.yml diff --git a/projects/github.com/kubecolor/kubecolor/package.yml b/projects/github.com/kubecolor/kubecolor/package.yml new file mode 100644 index 00000000..fd509b5e --- /dev/null +++ b/projects/github.com/kubecolor/kubecolor/package.yml @@ -0,0 +1,30 @@ +distributable: + url: https://github.com/kubecolor/kubecolor/archive/v{{version}}.tar.gz + strip-components: 1 + +versions: + github: kubecolor/kubecolor + +build: + dependencies: + go.dev: ^1.21 + script: + go build $ARGS -ldflags="$LDFLAGS" . + env: + CGO_ENABLED: 0 + LDFLAGS: + - -s + - -w + - -X main.Version={{version}} + ARGS: + - -trimpath + - -o={{prefix}}/bin/kubecolor + linux: + ARGS: + - -buildmode=pie + +provides: + - bin/kubecolor + +test: + - kubecolor --kubecolor-version | grep {{version}}