Package: kubectx Version: 0.11.0-1 Severity: normal Tags: patch X-Debbugs-Cc: [email protected]
Currently "kubectx --version" returns v0.0.0+unknown. A patch is attached that sets this to the upstream version. Alternatively, I opened a MR for this at https://salsa.debian.org/kubernetes-team/packages/kubectx/-/merge_requests/3, not sure which you prefer. -- System Information: Debian Release: forky/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 7.0.13+deb14-amd64 (SMP w/4 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages kubectx depends on: ii libc6 2.42-17 kubectx recommends no packages. Versions of packages kubectx suggests: ii bash-completion 1:2.16.0-8 -- no debconf information
diff -Nru kubectx-0.11.0/debian/changelog kubectx-0.11.0/debian/changelog --- kubectx-0.11.0/debian/changelog 2026-04-09 21:19:00.000000000 -0500 +++ kubectx-0.11.0/debian/changelog 2026-08-27 13:59:41.000000000 -0500 @@ -1,3 +1,9 @@ +kubectx (0.11.0-2) UNRELEASED; urgency=medium + + * d/rules: Set version string in build so "kubectx --version" works + + -- Stephen Gelman <[email protected]> Thu, 27 Aug 2026 13:59:41 -0500 + kubectx (0.11.0-1) unstable; urgency=medium * New upstream version 0.11.0. diff -Nru kubectx-0.11.0/debian/rules kubectx-0.11.0/debian/rules --- kubectx-0.11.0/debian/rules 2026-04-09 21:19:00.000000000 -0500 +++ kubectx-0.11.0/debian/rules 2026-08-27 13:59:41.000000000 -0500 @@ -9,6 +9,9 @@ mkdir -p _build/src/facette.io ln -s /usr/share/gocode/src/github.com/facette/natsort _build/src/facette.io/natsort +override_dh_auto_build: + dh_auto_build -- -ldflags "-X main.version=$(DEB_VERSION_UPSTREAM)" + override_dh_auto_install: dh_auto_install -- --no-source

