Github messages for voidlinux
 help / color / mirror / Atom feed
From: MarleDK <MarleDK@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] Yq alternatives
Date: Fri, 15 Jul 2022 10:21:56 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-38081@inbox.vuxu.org> (raw)

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

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

https://github.com/MarleDK/void-packages yq-alternatives
https://github.com/void-linux/void-packages/pull/38081

Yq alternatives
#### Testing the changes
- I tested the changes in this PR: **briefly**
  - I tested by installing both `yq` and `yq-go`, and changed the alternative, to see if it changed what `yq` would run


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

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

From b2b344e8159e14458fe93de0abc8de2bf3ac725b Mon Sep 17 00:00:00 2001
From: Jakob Rydhof <jry@famly.co>
Date: Fri, 15 Jul 2022 10:17:07 +0200
Subject: [PATCH 1/2] yq: define yq alternative

---
 srcpkgs/yq/template | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/yq/template b/srcpkgs/yq/template
index b775674672ac..a1d482d21fc3 100644
--- a/srcpkgs/yq/template
+++ b/srcpkgs/yq/template
@@ -1,7 +1,7 @@
 # Template file for 'yq'
 pkgname=yq
 version=3.0.1
-revision=1
+revision=2
 build_style=python3-module
 hostmakedepends="python3-setuptools_scm"
 makedepends="python3-yaml"
@@ -14,6 +14,8 @@ homepage="https://github.com/kislyuk/yq"
 distfiles="${PYPI_SITE}/y/yq/yq-${version}.tar.gz"
 checksum=a5e61078facd7ee4222f4346b5b50c4e9cea5e9d3330f074b5ea2c203bf639b1
 
+alternatives="yq:yq:/usr/bin/yq"
+
 do_check() {
 	python3 test/test.py
 }

From cfa871a5a77a27e4b87f393f560959efc08c995c Mon Sep 17 00:00:00 2001
From: Jakob Rydhof <jry@famly.co>
Date: Fri, 15 Jul 2022 10:17:19 +0200
Subject: [PATCH 2/2] yq-go: define yq alternative

---
 srcpkgs/yq-go/template | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/yq-go/template b/srcpkgs/yq-go/template
index 09438dd18879..e0035cc787b8 100644
--- a/srcpkgs/yq-go/template
+++ b/srcpkgs/yq-go/template
@@ -1,7 +1,7 @@
 # Template file for 'yq-go'
 pkgname=yq-go
 version=4.25.3
-revision=1
+revision=2
 wrksrc="yq-${version}"
 build_style=go
 go_import_path=github.com/mikefarah/yq/v4
@@ -13,6 +13,9 @@ changelog="https://raw.githubusercontent.com/mikefarah/yq/master/release_notes.t
 distfiles="https://github.com/mikefarah/yq/archive/v${version}.tar.gz"
 checksum=30309ae4efbe8b4f0a26e3c878bac72288faa0ba54f544c7fecdb3e0373966eb
 
+
+alternatives="yq:yq:/usr/bin/yq-go"
+
 do_check() {
 	go test -v
 }

             reply	other threads:[~2022-07-15  8:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-15  8:21 MarleDK [this message]
2022-07-15  8:24 ` [PR PATCH] [Updated] " MarleDK
2022-07-15 15:05 ` Chocimier
2022-07-15 15:05 ` [PR PATCH] [Closed]: " Chocimier
2022-07-15 15:24 ` MarleDK

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-38081@inbox.vuxu.org \
    --to=marledk@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).