Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] goreleaser: add completion and README.md
@ 2023-07-23 14:01 mchlumsky
  2023-07-23 14:04 ` [PR REVIEW] " classabbyamp
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: mchlumsky @ 2023-07-23 14:01 UTC (permalink / raw)
  To: ml

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

There is a new pull request by mchlumsky against master on the void-packages repository

https://github.com/mchlumsky/void-packages add-readme-completion
https://github.com/void-linux/void-packages/pull/45205

goreleaser: add completion and README.md
#### Testing the changes
- I tested the changes in this PR: **YES**

- I built this PR locally for my native architecture, x86_64-glibc

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-add-readme-completion-45205.patch --]
[-- Type: text/x-diff, Size: 1151 bytes --]

From 2118cfdcfc9795ab5274e85a8a7df8b0c80b6f1e Mon Sep 17 00:00:00 2001
From: Martin Chlumsky <martin.chlumsky@gmail.com>
Date: Fri, 21 Jul 2023 13:16:26 -0400
Subject: [PATCH] goreleaser: add completion and README.md

---
 srcpkgs/goreleaser/template | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/goreleaser/template b/srcpkgs/goreleaser/template
index e245056d7d15b..c51af9e32ad80 100644
--- a/srcpkgs/goreleaser/template
+++ b/srcpkgs/goreleaser/template
@@ -1,7 +1,7 @@
 # Template file for 'goreleaser'
 pkgname=goreleaser
 version=1.19.2
-revision=1
+revision=2
 build_style=go
 go_import_path=github.com/goreleaser/goreleaser
 go_ldflags="-X main.version=${version}"
@@ -13,5 +13,14 @@ distfiles="https://github.com/goreleaser/goreleaser/archive/refs/tags/v$version.
 checksum=60e94d9371f7106878441deb006814339e3cf3d7f574d25cb22a9a45ec14939b
 
 post_install() {
+	vdoc README.md
+
 	vlicense LICENSE.md
+
+	goreleaser=$(find $GOPATH/bin -name goreleaser)
+
+	for shell in bash fish zsh; do
+		${goreleaser} completion ${shell} > completion.${shell}
+		vcompletion completion.${shell} ${shell}
+	done
 }

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-07-24 13:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-23 14:01 [PR PATCH] goreleaser: add completion and README.md mchlumsky
2023-07-23 14:04 ` [PR REVIEW] " classabbyamp
2023-07-23 14:09 ` [PR PATCH] [Updated] " mchlumsky
2023-07-23 14:10 ` [PR REVIEW] goreleaser: add completion mchlumsky
2023-07-23 14:14 ` classabbyamp
2023-07-23 14:14 ` classabbyamp
2023-07-23 22:12 ` [PR PATCH] [Updated] " mchlumsky
2023-07-23 22:20 ` [PR REVIEW] " mchlumsky
2023-07-24 13:45 ` [PR PATCH] [Merged]: " classabbyamp

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).