From 2eda80c9391a58f1f9d5851b94a07e4f637c8fc0 Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Mon, 11 Mar 2024 15:24:54 -0300 Subject: [PATCH] fix(kubectx.dev) (#5510) * Fix kubectx and kubens * ignore versions older than 0.9 * Update package.yml --------- Co-authored-by: Jacob Heider --- projects/kubectx.dev/package.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/projects/kubectx.dev/package.yml b/projects/kubectx.dev/package.yml index a4f3a2fa..a63ac93d 100644 --- a/projects/kubectx.dev/package.yml +++ b/projects/kubectx.dev/package.yml @@ -1,25 +1,27 @@ distributable: - url: https://github.com/ahmetb/kubectx/archive/refs/tags/v{{version}}.tar.gz - strip-components: 1 + url: git+https://github.com/ahmetb/kubectx.git + ref: ${{version.tag}} versions: github: ahmetb/kubectx + ignore: /^v?0\.[0-8](\.|$)/ # prior to 0.9 kubectx was a bash script provides: - bin/kubectx - bin/kubens dependencies: - kubernetes.io/kubectl: ^1.26.2 - gnu.org/bash: ^5.1 + github.com/junegunn/fzf: '*' build: - script: | - mkdir -p "{{ prefix }}"/bin - mv kubectx "{{ prefix }}"/bin - mv kubens "{{ prefix }}"/bin + dependencies: + go.dev: ^1.20 + env: + CGO_ENABLED: '0' + script: + - go build -o '{{ prefix }}/bin/kubectx' ./cmd/kubectx + - go build -o '{{ prefix }}/bin/kubens' ./cmd/kubens test: - script: | - kubectx --help - kubens --help \ No newline at end of file + - kubectx --help + - kubens --help