Github messages for voidlinux
 help / color / mirror / Atom feed
From: ssnailed <ssnailed@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] k9s: install completions
Date: Mon, 10 Jun 2024 00:52:49 +0200	[thread overview]
Message-ID: <20240609225249.E001C2AFA5@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-50733@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 481 bytes --]

There is an updated pull request by ssnailed against master on the void-packages repository

https://github.com/ssnailed/void-packages master
https://github.com/void-linux/void-packages/pull/50733

k9s: install completions
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

A patch file from https://github.com/void-linux/void-packages/pull/50733.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-50733.patch --]
[-- Type: text/x-diff, Size: 1089 bytes --]

From b0863a5ae011a75fea429ef5abf8895fc921e1a4 Mon Sep 17 00:00:00 2001
From: Luca Bilke <bilke@tralios.de>
Date: Fri, 7 Jun 2024 17:48:06 +0200
Subject: [PATCH] k9s: install completions

---
 srcpkgs/k9s/template | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/k9s/template b/srcpkgs/k9s/template
index 5a42f968ffcfec..da8f77169f31e9 100644
--- a/srcpkgs/k9s/template
+++ b/srcpkgs/k9s/template
@@ -1,7 +1,7 @@
 # Template file for 'k9s'
 pkgname=k9s
 version=0.32.4
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/derailed/k9s"
 go_ldflags="-X ${go_import_path}/cmd.version=${version}"
@@ -14,3 +14,19 @@ checksum=597fa2c547437070a8993d1fb6fce91d696bd3731d37230feace3a2d3bfdb198
 
 # fix: collect2: fatal error: cannot find 'ld'
 export LDFLAGS="-fuse-ld=bfd"
+
+pre_build() {
+	TARGET_GOARCH=$GOARCH go generate
+}
+
+post_build() {
+	for shell in bash zsh fish; do
+		go run main.go completion $shell >k9s.$shell
+	done
+}
+
+post_install() {
+	for shell in bash zsh fish; do
+		vcompletion k9s.$shell $shell
+	done
+}

  parent reply	other threads:[~2024-06-09 22:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-07 15:50 [PR PATCH] " ssnailed
2024-06-07 20:40 ` [PR PATCH] [Updated] " ssnailed
2024-06-09 22:52 ` ssnailed [this message]
2024-06-09 22:53 ` ssnailed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240609225249.E001C2AFA5@inbox.vuxu.org \
    --to=ssnailed@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).