Github messages for voidlinux
 help / color / mirror / Atom feed
From: mchlumsky <mchlumsky@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] goreleaser: add completion and README.md
Date: Sun, 23 Jul 2023 16:01:12 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45205@inbox.vuxu.org> (raw)

[-- 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
 }

             reply	other threads:[~2023-07-23 14:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-23 14:01 mchlumsky [this message]
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

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45205@inbox.vuxu.org \
    --to=mchlumsky@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).