* [PR PATCH] New package: kubectx-0.9.4
@ 2022-10-05 9:17 fanyx
2022-10-05 9:20 ` [PR PATCH] [Updated] " fanyx
` (29 more replies)
0 siblings, 30 replies; 31+ messages in thread
From: fanyx @ 2022-10-05 9:17 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1214 bytes --]
There is a new pull request by fanyx against master on the void-packages repository
https://github.com/fanyx/void-packages kubectx
https://github.com/void-linux/void-packages/pull/39732
New package: kubectx-0.9.4
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64
New PR for previously abandoned package.
https://github.com/void-linux/void-packages/pull/17088
I'll maintain updates if necessary.
A patch file from https://github.com/void-linux/void-packages/pull/39732.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-kubectx-39732.patch --]
[-- Type: text/x-diff, Size: 1464 bytes --]
From c131a541fe026533fe99cf1610b036e426457a4c Mon Sep 17 00:00:00 2001
From: fanyx <fanyx@fanyx.xyz>
Date: Wed, 5 Oct 2022 11:13:51 +0200
Subject: [PATCH] New package: kubectx-0.9.4
---
srcpkgs/kubectx/template | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 srcpkgs/kubectx/template
diff --git a/srcpkgs/kubectx/template b/srcpkgs/kubectx/template
new file mode 100644
index 000000000000..f23ed8cc42ac
--- /dev/null
+++ b/srcpkgs/kubectx/template
@@ -0,0 +1,23 @@
+# Template file for 'kubectx'
+pkgname=kubectx
+version=0.9.4
+revision=1
+build_style=meta
+depends="fzf kubectl"
+short_desc="Faster way to switch between clusters and namespaces in kubectl"
+maintainer="fanyx <fanyx@fanyx.xyz>"
+license="Apache 2.0"
+homepage="https://github.com/ahmetb/kubectx"
+distfiles="https://github.com/ahmetb/kubectx/archive/v${version}.tar.gz"
+checksum=91e6b2e0501bc581f006322d621adad928ea3bd3d8df6612334804b93efd258c
+
+do_install() {
+ vbin kubectx
+ vbin kubens
+ vinstall completion/kubectx.fish 0644 usr/share/fish/completions
+ vinstall completion/kubens.fish 0644 usr/share/fish/completions
+ vinstall completion/kubectx.zsh 0644 usr/share/zsh/site-functions
+ vinstall completion/kubens.zsh 0644 usr/share/zsh/site-functions
+ vinstall completion/kubectx.bash 0644 usr/share/bash-completion/completions kubectx
+ vinstall completion/kubens.bash 0644 usr/share/bash-completion/completions kubens
+}
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PR PATCH] [Updated] New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
@ 2022-10-05 9:20 ` fanyx
2022-10-05 9:23 ` fanyx
` (28 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2022-10-05 9:20 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1219 bytes --]
There is an updated pull request by fanyx against master on the void-packages repository
https://github.com/fanyx/void-packages kubectx
https://github.com/void-linux/void-packages/pull/39732
New package: kubectx-0.9.4
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64
New PR for previously abandoned package.
https://github.com/void-linux/void-packages/pull/17088
I'll maintain updates if necessary.
A patch file from https://github.com/void-linux/void-packages/pull/39732.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-kubectx-39732.patch --]
[-- Type: text/x-diff, Size: 1464 bytes --]
From 350be4a6860f0ce5d235dff89361751b7d8bc386 Mon Sep 17 00:00:00 2001
From: fanyx <fanyx@fanyx.xyz>
Date: Wed, 5 Oct 2022 11:13:51 +0200
Subject: [PATCH] New package: kubectx-0.9.4
---
srcpkgs/kubectx/template | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 srcpkgs/kubectx/template
diff --git a/srcpkgs/kubectx/template b/srcpkgs/kubectx/template
new file mode 100644
index 000000000000..20694427f944
--- /dev/null
+++ b/srcpkgs/kubectx/template
@@ -0,0 +1,23 @@
+# Template file for 'kubectx'
+pkgname=kubectx
+version=0.9.4
+revision=1
+build_style=meta
+depends="fzf kubectl"
+short_desc="Faster way to switch between clusters and namespaces in kubectl"
+maintainer="fanyx <fanyx@fanyx.xyz>"
+license="Apache-2.0"
+homepage="https://github.com/ahmetb/kubectx"
+distfiles="https://github.com/ahmetb/kubectx/archive/v${version}.tar.gz"
+checksum=91e6b2e0501bc581f006322d621adad928ea3bd3d8df6612334804b93efd258c
+
+do_install() {
+ vbin kubectx
+ vbin kubens
+ vinstall completion/kubectx.fish 0644 usr/share/fish/completions
+ vinstall completion/kubens.fish 0644 usr/share/fish/completions
+ vinstall completion/kubectx.zsh 0644 usr/share/zsh/site-functions
+ vinstall completion/kubens.zsh 0644 usr/share/zsh/site-functions
+ vinstall completion/kubectx.bash 0644 usr/share/bash-completion/completions kubectx
+ vinstall completion/kubens.bash 0644 usr/share/bash-completion/completions kubens
+}
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PR PATCH] [Updated] New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
2022-10-05 9:20 ` [PR PATCH] [Updated] " fanyx
@ 2022-10-05 9:23 ` fanyx
2022-10-05 9:59 ` [PR REVIEW] " classabbyamp
` (27 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2022-10-05 9:23 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1219 bytes --]
There is an updated pull request by fanyx against master on the void-packages repository
https://github.com/fanyx/void-packages kubectx
https://github.com/void-linux/void-packages/pull/39732
New package: kubectx-0.9.4
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64
New PR for previously abandoned package.
https://github.com/void-linux/void-packages/pull/17088
I'll maintain updates if necessary.
A patch file from https://github.com/void-linux/void-packages/pull/39732.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-kubectx-39732.patch --]
[-- Type: text/x-diff, Size: 1440 bytes --]
From cf8a445fc666e1b7017b71cf7dd76a41bcff6624 Mon Sep 17 00:00:00 2001
From: fanyx <fanyx@fanyx.xyz>
Date: Wed, 5 Oct 2022 11:13:51 +0200
Subject: [PATCH] New package: kubectx-0.9.4
---
srcpkgs/kubectx/template | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 srcpkgs/kubectx/template
diff --git a/srcpkgs/kubectx/template b/srcpkgs/kubectx/template
new file mode 100644
index 000000000000..e188f97cf96b
--- /dev/null
+++ b/srcpkgs/kubectx/template
@@ -0,0 +1,23 @@
+# Template file for 'kubectx'
+pkgname=kubectx
+version=0.9.4
+revision=1
+build_style=meta
+depends="fzf kubectl"
+short_desc="Faster way to switch between clusters and namespaces in kubectl"
+maintainer="fanyx <fanyx@fanyx.xyz>"
+license="Apache-2.0"
+homepage="https://github.com/ahmetb/kubectx"
+distfiles="https://github.com/ahmetb/kubectx/archive/v${version}.tar.gz"
+checksum=91e6b2e0501bc581f006322d621adad928ea3bd3d8df6612334804b93efd258c
+
+do_install() {
+ vbin kubectx
+ vbin kubens
+ vinstall completion/kubectx.fish 0644 usr/share/fish/completions
+ vinstall completion/kubens.fish 0644 usr/share/fish/completions
+ vinstall completion/kubectx.zsh 0644 usr/share/zsh/site-functions
+ vinstall completion/kubens.zsh 0644 usr/share/zsh/site-functions
+ vinstall completion/kubectx.bash 0644 usr/share/bash-completion/completions kubectx
+ vinstall completion/kubens.bash 0644 usr/share/bash-completion/completions kubens
+}
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PR REVIEW] New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
2022-10-05 9:20 ` [PR PATCH] [Updated] " fanyx
2022-10-05 9:23 ` fanyx
@ 2022-10-05 9:59 ` classabbyamp
2022-10-05 10:00 ` classabbyamp
` (26 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2022-10-05 9:59 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 306 bytes --]
New review comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#discussion_r987746886
Comment:
```suggestion
for bin in kubectx kubens; do
vbin $bin
for sh in bash zsh fish; do
vcompletion completion/$bin.$sh $sh $bin
done
done
```
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PR REVIEW] New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (2 preceding siblings ...)
2022-10-05 9:59 ` [PR REVIEW] " classabbyamp
@ 2022-10-05 10:00 ` classabbyamp
2022-10-05 10:04 ` classabbyamp
` (25 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2022-10-05 10:00 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 178 bytes --]
New review comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#discussion_r987748312
Comment:
this is not a meta package
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (3 preceding siblings ...)
2022-10-05 10:00 ` classabbyamp
@ 2022-10-05 10:04 ` classabbyamp
2022-10-05 10:04 ` classabbyamp
` (24 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2022-10-05 10:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 580 bytes --]
New comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#issuecomment-1268221729
Comment:
imo, for this to meet quality requirements, it would need to be the go version, not the bash version:
> Stable versions of `kubectx` and `kubens` are small bash scripts that you can find in this repository.
>
> Starting with v0.9.0, `kubectx` and `kubens` **are now rewritten in Go**. They should work the same way (and we'll keep the bash-based implementations around) but the new features will be added to the new Go programs.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (4 preceding siblings ...)
2022-10-05 10:04 ` classabbyamp
@ 2022-10-05 10:04 ` classabbyamp
2022-10-05 10:10 ` fanyx
` (23 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2022-10-05 10:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 580 bytes --]
New comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#issuecomment-1268221729
Comment:
imo, for this to meet quality requirements, it would need to be the go version, not the bash version:
> Stable versions of `kubectx` and `kubens` are small bash scripts that you can find in this repository.
>
> Starting with v0.9.0, `kubectx` and `kubens` **are now rewritten in Go**. They should work the same way (and we'll keep the bash-based implementations around) but the new features will be added to the new Go programs.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (5 preceding siblings ...)
2022-10-05 10:04 ` classabbyamp
@ 2022-10-05 10:10 ` fanyx
2022-10-12 9:20 ` [PR PATCH] [Updated] " fanyx
` (22 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2022-10-05 10:10 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 445 bytes --]
New comment by fanyx on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#issuecomment-1268228068
Comment:
> imo, for this to meet quality requirements, it would need to be the go version, not the bash version
didn't know about this rewrite till just now.
i'll update accordingly.
> this is not a meta package
yeah i noticed when you pointed it out
i used the template of the previous PR as base
tyty
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PR PATCH] [Updated] New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (6 preceding siblings ...)
2022-10-05 10:10 ` fanyx
@ 2022-10-12 9:20 ` fanyx
2022-10-12 9:23 ` fanyx
` (21 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2022-10-12 9:20 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1219 bytes --]
There is an updated pull request by fanyx against master on the void-packages repository
https://github.com/fanyx/void-packages kubectx
https://github.com/void-linux/void-packages/pull/39732
New package: kubectx-0.9.4
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64
New PR for previously abandoned package.
https://github.com/void-linux/void-packages/pull/17088
I'll maintain updates if necessary.
A patch file from https://github.com/void-linux/void-packages/pull/39732.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-kubectx-39732.patch --]
[-- Type: text/x-diff, Size: 1259 bytes --]
From 2ac748298fc5a806e922e98b63927cae0210b764 Mon Sep 17 00:00:00 2001
From: fanyx <fanyx@fanyx.xyz>
Date: Wed, 12 Oct 2022 11:19:52 +0200
Subject: [PATCH] New package: kubectx-0.9.4
---
srcpkgs/kubectx/template | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 srcpkgs/kubectx/template
diff --git a/srcpkgs/kubectx/template b/srcpkgs/kubectx/template
new file mode 100644
index 000000000000..584abc81c714
--- /dev/null
+++ b/srcpkgs/kubectx/template
@@ -0,0 +1,27 @@
+# Template file for 'kubectx'
+pkgname=kubectx
+version=0.9.4
+revision=1
+makedepends="go"
+depends="fzf kubectl"
+short_desc="Faster way to switch between clusters and namespaces in kubectl"
+maintainer="fanyx <fanyx@fanyx.xyz>"
+license="Apache-2.0"
+homepage="https://github.com/ahmetb/kubectx"
+distfiles="https://github.com/ahmetb/kubectx/archive/v${version}.tar.gz"
+checksum=91e6b2e0501bc581f006322d621adad928ea3bd3d8df6612334804b93efd258c
+nopie=y
+
+do_build() {
+ go build -o ${worksrc}/bin/kubectx ./cmd/kubectx/
+ go build -o ${worksrc}/bin/kubens ./cmd/kubens/
+}
+
+do_install() {
+ for bin in kubectx kubens; do
+ vbin ${worksrc}/$bin
+ for sh in bash zsh fish; do
+ vcompletion completion/$bin.$sh $sh $sh $bin
+ done
+ done
+}
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (7 preceding siblings ...)
2022-10-12 9:20 ` [PR PATCH] [Updated] " fanyx
@ 2022-10-12 9:23 ` fanyx
2022-10-12 9:32 ` fanyx
` (20 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2022-10-12 9:23 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 289 bytes --]
New comment by fanyx on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#issuecomment-1275858915
Comment:
@classabbyamp
I've used ${worksrc} as i wasn't sure what $PWD is during do_build and do_install.
Is that fine or do you have a suggestion on this?
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (8 preceding siblings ...)
2022-10-12 9:23 ` fanyx
@ 2022-10-12 9:32 ` fanyx
2022-10-12 9:33 ` classabbyamp
` (19 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2022-10-12 9:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 197 bytes --]
New comment by fanyx on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#issuecomment-1275870444
Comment:
interesting
builds work just fine on my x86_64 system...
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (9 preceding siblings ...)
2022-10-12 9:32 ` fanyx
@ 2022-10-12 9:33 ` classabbyamp
2022-10-12 9:34 ` fanyx
` (18 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2022-10-12 9:33 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 550 bytes --]
New comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#issuecomment-1275871786
Comment:
$wrksrc is pwd, see https://github.com/void-linux/void-packages/blob/master/Manual.md#functions:
> Current working directory for functions is set as follows:
>
> - For pre_fetch, pre_extract, do_clean: <masterdir>.
> - For do_fetch, post_fetch: XBPS_BUILDDIR.
> - For do_extract through do_patch: wrksrc.
> - For post_patch through post_install: build_wrksrc if it is defined, otherwise wrksrc.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (10 preceding siblings ...)
2022-10-12 9:33 ` classabbyamp
@ 2022-10-12 9:34 ` fanyx
2022-10-12 9:39 ` classabbyamp
` (17 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2022-10-12 9:34 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 204 bytes --]
New comment by fanyx on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#issuecomment-1275873310
Comment:
thats what i thought, but it doesnt build when i leave it out...
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (11 preceding siblings ...)
2022-10-12 9:34 ` fanyx
@ 2022-10-12 9:39 ` classabbyamp
2022-10-12 9:55 ` [PR REVIEW] " paper42
` (16 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2022-10-12 9:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 238 bytes --]
New comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#issuecomment-1275879711
Comment:
I would also recommend using the go build_style for this, it might make a few things easier
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PR REVIEW] New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (12 preceding siblings ...)
2022-10-12 9:39 ` classabbyamp
@ 2022-10-12 9:55 ` paper42
2022-10-12 10:00 ` fanyx
` (15 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: paper42 @ 2022-10-12 9:55 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 177 bytes --]
New review comment by paper42 on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#discussion_r993250732
Comment:
use the go build style instead
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PR REVIEW] New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (13 preceding siblings ...)
2022-10-12 9:55 ` [PR REVIEW] " paper42
@ 2022-10-12 10:00 ` fanyx
2022-10-12 10:12 ` [PR PATCH] [Updated] " fanyx
` (14 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2022-10-12 10:00 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 282 bytes --]
New review comment by fanyx on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#discussion_r993256284
Comment:
i was gonna but it won't work as the repo root doesn't hold a main.go
code is in subdirectories, but those dont hold go.mod files either
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PR PATCH] [Updated] New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (14 preceding siblings ...)
2022-10-12 10:00 ` fanyx
@ 2022-10-12 10:12 ` fanyx
2022-10-12 11:49 ` [PR REVIEW] " paper42
` (13 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2022-10-12 10:12 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1219 bytes --]
There is an updated pull request by fanyx against master on the void-packages repository
https://github.com/fanyx/void-packages kubectx
https://github.com/void-linux/void-packages/pull/39732
New package: kubectx-0.9.4
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64
New PR for previously abandoned package.
https://github.com/void-linux/void-packages/pull/17088
I'll maintain updates if necessary.
A patch file from https://github.com/void-linux/void-packages/pull/39732.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-kubectx-39732.patch --]
[-- Type: text/x-diff, Size: 2356 bytes --]
From b46f6f2856be985f185bfd246540d32aa5e728ec Mon Sep 17 00:00:00 2001
From: fanyx <fanyx@fanyx.xyz>
Date: Wed, 12 Oct 2022 12:12:28 +0200
Subject: [PATCH] New package: kubectx-0.9.4
---
srcpkgs/kubectx/patches/version.patch | 26 ++++++++++++++++++++++++
srcpkgs/kubectx/template | 29 +++++++++++++++++++++++++++
2 files changed, 55 insertions(+)
create mode 100644 srcpkgs/kubectx/patches/version.patch
create mode 100644 srcpkgs/kubectx/template
diff --git a/srcpkgs/kubectx/patches/version.patch b/srcpkgs/kubectx/patches/version.patch
new file mode 100644
index 000000000000..a92c90878368
--- /dev/null
+++ b/srcpkgs/kubectx/patches/version.patch
@@ -0,0 +1,26 @@
+diff --git a/cmd/kubectx/version.go b/cmd/kubectx/version.go
+index 964f334..5b924da 100644
+--- a/cmd/kubectx/version.go
++++ b/cmd/kubectx/version.go
+@@ -8,7 +8,7 @@ import (
+ )
+
+ var (
+- version = "v0.0.0+unknown" // populated by goreleaser
++ version = "v0.9.4" // patched for xbps
+ )
+
+ // VersionOps describes printing version string.
+diff --git a/cmd/kubens/version.go b/cmd/kubens/version.go
+index 964f334..5b924da 100644
+--- a/cmd/kubens/version.go
++++ b/cmd/kubens/version.go
+@@ -8,7 +8,7 @@ import (
+ )
+
+ var (
+- version = "v0.0.0+unknown" // populated by goreleaser
++ version = "v0.9.4" // patched for xbps
+ )
+
+ // VersionOps describes printing version string.
diff --git a/srcpkgs/kubectx/template b/srcpkgs/kubectx/template
new file mode 100644
index 000000000000..b50b72e8221c
--- /dev/null
+++ b/srcpkgs/kubectx/template
@@ -0,0 +1,29 @@
+# Template file for 'kubectx'
+pkgname=kubectx
+version=0.9.4
+revision=1
+# build_style=go
+# go_import_path="github.com/ahmetb/kubectx"
+makedepends="go"
+depends="fzf kubectl"
+short_desc="Faster way to switch between clusters and namespaces in kubectl"
+maintainer="fanyx <fanyx@fanyx.xyz>"
+license="Apache-2.0"
+homepage="https://github.com/ahmetb/kubectx"
+distfiles="https://github.com/ahmetb/kubectx/archive/v${version}.tar.gz"
+checksum=91e6b2e0501bc581f006322d621adad928ea3bd3d8df6612334804b93efd258c
+nopie=y
+
+do_build() {
+ go build -o bin/kubectx ./cmd/kubectx
+ go build -o bin/kubens ./cmd/kubens
+}
+
+do_install() {
+ for bin in kubectx kubens; do
+ vbin bin/$bin $bin
+ for sh in bash zsh fish; do
+ vcompletion completion/$bin.$sh $sh $sh $bin
+ done
+ done
+}
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PR REVIEW] New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (15 preceding siblings ...)
2022-10-12 10:12 ` [PR PATCH] [Updated] " fanyx
@ 2022-10-12 11:49 ` paper42
2022-10-12 12:02 ` fanyx
` (12 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: paper42 @ 2022-10-12 11:49 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 233 bytes --]
New review comment by paper42 on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#discussion_r993353996
Comment:
Look at other templates, this is usually done by setting go_package and go_import_path
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PR REVIEW] New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (16 preceding siblings ...)
2022-10-12 11:49 ` [PR REVIEW] " paper42
@ 2022-10-12 12:02 ` fanyx
2022-10-12 12:11 ` [PR PATCH] [Updated] " fanyx
` (11 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2022-10-12 12:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 202 bytes --]
New review comment by fanyx on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#discussion_r993365947
Comment:
ah, go_package was the one i was missing
let me add that
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PR PATCH] [Updated] New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (17 preceding siblings ...)
2022-10-12 12:02 ` fanyx
@ 2022-10-12 12:11 ` fanyx
2022-10-12 12:20 ` fanyx
` (10 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2022-10-12 12:11 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1219 bytes --]
There is an updated pull request by fanyx against master on the void-packages repository
https://github.com/fanyx/void-packages kubectx
https://github.com/void-linux/void-packages/pull/39732
New package: kubectx-0.9.4
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64
New PR for previously abandoned package.
https://github.com/void-linux/void-packages/pull/17088
I'll maintain updates if necessary.
A patch file from https://github.com/void-linux/void-packages/pull/39732.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-kubectx-39732.patch --]
[-- Type: text/x-diff, Size: 2278 bytes --]
From 36751225b367549820d0a6c995c26467e4030989 Mon Sep 17 00:00:00 2001
From: fanyx <fanyx@fanyx.xyz>
Date: Wed, 12 Oct 2022 14:11:27 +0200
Subject: [PATCH] New package: kubectx-0.9.4
---
srcpkgs/kubectx/patches/version.patch | 26 ++++++++++++++++++++++++++
srcpkgs/kubectx/template | 22 ++++++++++++++++++++++
2 files changed, 48 insertions(+)
create mode 100644 srcpkgs/kubectx/patches/version.patch
create mode 100644 srcpkgs/kubectx/template
diff --git a/srcpkgs/kubectx/patches/version.patch b/srcpkgs/kubectx/patches/version.patch
new file mode 100644
index 000000000000..a92c90878368
--- /dev/null
+++ b/srcpkgs/kubectx/patches/version.patch
@@ -0,0 +1,26 @@
+diff --git a/cmd/kubectx/version.go b/cmd/kubectx/version.go
+index 964f334..5b924da 100644
+--- a/cmd/kubectx/version.go
++++ b/cmd/kubectx/version.go
+@@ -8,7 +8,7 @@ import (
+ )
+
+ var (
+- version = "v0.0.0+unknown" // populated by goreleaser
++ version = "v0.9.4" // patched for xbps
+ )
+
+ // VersionOps describes printing version string.
+diff --git a/cmd/kubens/version.go b/cmd/kubens/version.go
+index 964f334..5b924da 100644
+--- a/cmd/kubens/version.go
++++ b/cmd/kubens/version.go
+@@ -8,7 +8,7 @@ import (
+ )
+
+ var (
+- version = "v0.0.0+unknown" // populated by goreleaser
++ version = "v0.9.4" // patched for xbps
+ )
+
+ // VersionOps describes printing version string.
diff --git a/srcpkgs/kubectx/template b/srcpkgs/kubectx/template
new file mode 100644
index 000000000000..826c65873ebb
--- /dev/null
+++ b/srcpkgs/kubectx/template
@@ -0,0 +1,22 @@
+# Template file for 'kubectx'
+pkgname=kubectx
+version=0.9.4
+revision=1
+build_style=go
+go_import_path="github.com/ahmetb/kubectx"
+go_package="${go_import_path}/cmd/kubectx ${go_import_path}/cmd/kubens"
+depends="fzf kubectl"
+short_desc="Faster way to switch between clusters and namespaces in kubectl"
+maintainer="fanyx <fanyx@fanyx.xyz>"
+license="Apache-2.0"
+homepage="https://github.com/ahmetb/kubectx"
+distfiles="https://github.com/ahmetb/kubectx/archive/v${version}.tar.gz"
+checksum=91e6b2e0501bc581f006322d621adad928ea3bd3d8df6612334804b93efd258c
+
+post_install() {
+ for bin in kubectx kubens; do
+ for sh in bash zsh fish; do
+ vcompletion completion/$bin.$sh $sh $sh $bin
+ done
+ done
+}
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (18 preceding siblings ...)
2022-10-12 12:11 ` [PR PATCH] [Updated] " fanyx
@ 2022-10-12 12:20 ` fanyx
2022-10-12 12:23 ` paper42
` (9 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2022-10-12 12:20 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 404 bytes --]
New comment by fanyx on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#issuecomment-1276072264
Comment:
thanks for the help @paper42
should work as intended now
any suggestions on patching the correct version in, though?
should i keep the patch file and update it with every version manually or can we read the $version from the template during patching somehow?
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (19 preceding siblings ...)
2022-10-12 12:20 ` fanyx
@ 2022-10-12 12:23 ` paper42
2022-10-12 12:30 ` fanyx
` (8 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: paper42 @ 2022-10-12 12:23 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 451 bytes --]
New comment by paper42 on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#issuecomment-1276076468
Comment:
> any suggestions on patching the correct version in, though?
> should i keep the patch file and update it with every version manually or can we read the $version from the template during patching somehow?
`go_ldflags="-X ${go_import_path}/cmd/kubens.version=${version}"` and similar for the second binary
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (20 preceding siblings ...)
2022-10-12 12:23 ` paper42
@ 2022-10-12 12:30 ` fanyx
2022-10-12 12:39 ` [PR PATCH] [Updated] " fanyx
` (7 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2022-10-12 12:30 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 296 bytes --]
New comment by fanyx on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#issuecomment-1276085549
Comment:
> `go_ldflags="-X ${go_import_path}/cmd/kubens.version=${version}"` and similar for the second binary
unfortunately does not achieve the desired result..
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PR PATCH] [Updated] New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (21 preceding siblings ...)
2022-10-12 12:30 ` fanyx
@ 2022-10-12 12:39 ` fanyx
2022-10-12 12:45 ` fanyx
` (6 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2022-10-12 12:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1219 bytes --]
There is an updated pull request by fanyx against master on the void-packages repository
https://github.com/fanyx/void-packages kubectx
https://github.com/void-linux/void-packages/pull/39732
New package: kubectx-0.9.4
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64
New PR for previously abandoned package.
https://github.com/void-linux/void-packages/pull/17088
I'll maintain updates if necessary.
A patch file from https://github.com/void-linux/void-packages/pull/39732.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-kubectx-39732.patch --]
[-- Type: text/x-diff, Size: 1260 bytes --]
From f448e529dee31e16abb947e9d6e9979e85928c34 Mon Sep 17 00:00:00 2001
From: fanyx <fanyx@fanyx.xyz>
Date: Wed, 12 Oct 2022 14:39:22 +0200
Subject: [PATCH] New package: kubectx-0.9.4
---
srcpkgs/kubectx/template | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 srcpkgs/kubectx/template
diff --git a/srcpkgs/kubectx/template b/srcpkgs/kubectx/template
new file mode 100644
index 000000000000..1f46eef42542
--- /dev/null
+++ b/srcpkgs/kubectx/template
@@ -0,0 +1,23 @@
+# Template file for 'kubectx'
+pkgname=kubectx
+version=0.9.4
+revision=1
+build_style=go
+go_import_path="github.com/ahmetb/kubectx"
+go_package="${go_import_path}/cmd/kubectx ${go_import_path}/cmd/kubens"
+go_ldflags="-X main.version=v${version}"
+depends="fzf kubectl"
+short_desc="Faster way to switch between clusters and namespaces in kubectl"
+maintainer="fanyx <fanyx@fanyx.xyz>"
+license="Apache-2.0"
+homepage="https://github.com/ahmetb/kubectx"
+distfiles="https://github.com/ahmetb/kubectx/archive/v${version}.tar.gz"
+checksum=91e6b2e0501bc581f006322d621adad928ea3bd3d8df6612334804b93efd258c
+
+post_install() {
+ for bin in kubectx kubens; do
+ for sh in bash zsh fish; do
+ vcompletion completion/$bin.$sh $sh $sh $bin
+ done
+ done
+}
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (22 preceding siblings ...)
2022-10-12 12:39 ` [PR PATCH] [Updated] " fanyx
@ 2022-10-12 12:45 ` fanyx
2022-10-17 7:01 ` [PR PATCH] [Updated] " fanyx
` (5 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2022-10-12 12:45 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 331 bytes --]
New comment by fanyx on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#issuecomment-1276115701
Comment:
`go_ldflags="-X main.version=v${version}"` did the job just fine.
`go_ldflags="-X ${go_import_path}/cmd/kubectx/version.version=v${version}` unfortunately does not either, no idea why...
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PR PATCH] [Updated] New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (23 preceding siblings ...)
2022-10-12 12:45 ` fanyx
@ 2022-10-17 7:01 ` fanyx
2022-10-17 7:06 ` fanyx
` (4 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2022-10-17 7:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1219 bytes --]
There is an updated pull request by fanyx against master on the void-packages repository
https://github.com/fanyx/void-packages kubectx
https://github.com/void-linux/void-packages/pull/39732
New package: kubectx-0.9.4
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64
New PR for previously abandoned package.
https://github.com/void-linux/void-packages/pull/17088
I'll maintain updates if necessary.
A patch file from https://github.com/void-linux/void-packages/pull/39732.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-kubectx-39732.patch --]
[-- Type: text/x-diff, Size: 1260 bytes --]
From 152bc0efa11d3f4ef033c5323ad50133f180d928 Mon Sep 17 00:00:00 2001
From: fanyx <fanyx@fanyx.xyz>
Date: Wed, 12 Oct 2022 14:39:22 +0200
Subject: [PATCH] New package: kubectx-0.9.4
---
srcpkgs/kubectx/template | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 srcpkgs/kubectx/template
diff --git a/srcpkgs/kubectx/template b/srcpkgs/kubectx/template
new file mode 100644
index 000000000000..1f46eef42542
--- /dev/null
+++ b/srcpkgs/kubectx/template
@@ -0,0 +1,23 @@
+# Template file for 'kubectx'
+pkgname=kubectx
+version=0.9.4
+revision=1
+build_style=go
+go_import_path="github.com/ahmetb/kubectx"
+go_package="${go_import_path}/cmd/kubectx ${go_import_path}/cmd/kubens"
+go_ldflags="-X main.version=v${version}"
+depends="fzf kubectl"
+short_desc="Faster way to switch between clusters and namespaces in kubectl"
+maintainer="fanyx <fanyx@fanyx.xyz>"
+license="Apache-2.0"
+homepage="https://github.com/ahmetb/kubectx"
+distfiles="https://github.com/ahmetb/kubectx/archive/v${version}.tar.gz"
+checksum=91e6b2e0501bc581f006322d621adad928ea3bd3d8df6612334804b93efd258c
+
+post_install() {
+ for bin in kubectx kubens; do
+ for sh in bash zsh fish; do
+ vcompletion completion/$bin.$sh $sh $sh $bin
+ done
+ done
+}
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PR PATCH] [Updated] New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (24 preceding siblings ...)
2022-10-17 7:01 ` [PR PATCH] [Updated] " fanyx
@ 2022-10-17 7:06 ` fanyx
2023-01-16 1:59 ` github-actions
` (3 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2022-10-17 7:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1219 bytes --]
There is an updated pull request by fanyx against master on the void-packages repository
https://github.com/fanyx/void-packages kubectx
https://github.com/void-linux/void-packages/pull/39732
New package: kubectx-0.9.4
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64
New PR for previously abandoned package.
https://github.com/void-linux/void-packages/pull/17088
I'll maintain updates if necessary.
A patch file from https://github.com/void-linux/void-packages/pull/39732.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-kubectx-39732.patch --]
[-- Type: text/x-diff, Size: 1260 bytes --]
From 2f42bc4596e7b2b19740f7b5eed782e7f3f77438 Mon Sep 17 00:00:00 2001
From: fanyx <fanyx@fanyx.xyz>
Date: Wed, 12 Oct 2022 14:39:22 +0200
Subject: [PATCH] New package: kubectx-0.9.4
---
srcpkgs/kubectx/template | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 srcpkgs/kubectx/template
diff --git a/srcpkgs/kubectx/template b/srcpkgs/kubectx/template
new file mode 100644
index 000000000000..1f46eef42542
--- /dev/null
+++ b/srcpkgs/kubectx/template
@@ -0,0 +1,23 @@
+# Template file for 'kubectx'
+pkgname=kubectx
+version=0.9.4
+revision=1
+build_style=go
+go_import_path="github.com/ahmetb/kubectx"
+go_package="${go_import_path}/cmd/kubectx ${go_import_path}/cmd/kubens"
+go_ldflags="-X main.version=v${version}"
+depends="fzf kubectl"
+short_desc="Faster way to switch between clusters and namespaces in kubectl"
+maintainer="fanyx <fanyx@fanyx.xyz>"
+license="Apache-2.0"
+homepage="https://github.com/ahmetb/kubectx"
+distfiles="https://github.com/ahmetb/kubectx/archive/v${version}.tar.gz"
+checksum=91e6b2e0501bc581f006322d621adad928ea3bd3d8df6612334804b93efd258c
+
+post_install() {
+ for bin in kubectx kubens; do
+ for sh in bash zsh fish; do
+ vcompletion completion/$bin.$sh $sh $sh $bin
+ done
+ done
+}
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (25 preceding siblings ...)
2022-10-17 7:06 ` fanyx
@ 2023-01-16 1:59 ` github-actions
2023-01-16 13:00 ` fanyx
` (2 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: github-actions @ 2023-01-16 1:59 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#issuecomment-1383353252
Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (26 preceding siblings ...)
2023-01-16 1:59 ` github-actions
@ 2023-01-16 13:00 ` fanyx
2023-01-16 13:00 ` [PR PATCH] [Closed]: " fanyx
2023-01-16 13:00 ` fanyx
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2023-01-16 13:00 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 279 bytes --]
New comment by fanyx on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#issuecomment-1384020301
Comment:
i'd suspend this package for `kubectx-bash` #40005 for the time being due to this go version lacking features available in the bash version
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PR PATCH] [Closed]: New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (27 preceding siblings ...)
2023-01-16 13:00 ` fanyx
@ 2023-01-16 13:00 ` fanyx
2023-01-16 13:00 ` fanyx
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2023-01-16 13:00 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1067 bytes --]
There's a closed pull request on the void-packages repository
New package: kubectx-0.9.4
https://github.com/void-linux/void-packages/pull/39732
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64
New PR for previously abandoned package.
https://github.com/void-linux/void-packages/pull/17088
I'll maintain updates if necessary.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: New package: kubectx-0.9.4
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
` (28 preceding siblings ...)
2023-01-16 13:00 ` [PR PATCH] [Closed]: " fanyx
@ 2023-01-16 13:00 ` fanyx
29 siblings, 0 replies; 31+ messages in thread
From: fanyx @ 2023-01-16 13:00 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 335 bytes --]
New comment by fanyx on void-packages repository
https://github.com/void-linux/void-packages/pull/39732#issuecomment-1384020301
Comment:
i'd suspend this package for `kubectx-bash` #40005 for the time being due to this go version lacking features available in the bash version
might reopen if updates feature-complete the package
^ permalink raw reply [flat|nested] 31+ messages in thread
end of thread, other threads:[~2023-01-16 13:00 UTC | newest]
Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-05 9:17 [PR PATCH] New package: kubectx-0.9.4 fanyx
2022-10-05 9:20 ` [PR PATCH] [Updated] " fanyx
2022-10-05 9:23 ` fanyx
2022-10-05 9:59 ` [PR REVIEW] " classabbyamp
2022-10-05 10:00 ` classabbyamp
2022-10-05 10:04 ` classabbyamp
2022-10-05 10:04 ` classabbyamp
2022-10-05 10:10 ` fanyx
2022-10-12 9:20 ` [PR PATCH] [Updated] " fanyx
2022-10-12 9:23 ` fanyx
2022-10-12 9:32 ` fanyx
2022-10-12 9:33 ` classabbyamp
2022-10-12 9:34 ` fanyx
2022-10-12 9:39 ` classabbyamp
2022-10-12 9:55 ` [PR REVIEW] " paper42
2022-10-12 10:00 ` fanyx
2022-10-12 10:12 ` [PR PATCH] [Updated] " fanyx
2022-10-12 11:49 ` [PR REVIEW] " paper42
2022-10-12 12:02 ` fanyx
2022-10-12 12:11 ` [PR PATCH] [Updated] " fanyx
2022-10-12 12:20 ` fanyx
2022-10-12 12:23 ` paper42
2022-10-12 12:30 ` fanyx
2022-10-12 12:39 ` [PR PATCH] [Updated] " fanyx
2022-10-12 12:45 ` fanyx
2022-10-17 7:01 ` [PR PATCH] [Updated] " fanyx
2022-10-17 7:06 ` fanyx
2023-01-16 1:59 ` github-actions
2023-01-16 13:00 ` fanyx
2023-01-16 13:00 ` [PR PATCH] [Closed]: " fanyx
2023-01-16 13:00 ` fanyx
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).