Skip to content
Snippets Groups Projects
Commit 2009d694 authored by Jakub Jirutka's avatar Jakub Jirutka :flag_ua:
Browse files

community/yq: rename to yq-python

Replacing mikefarah/yq with kislyuk/yq is a too problematic change which
may cause hard to spot problems for users who currently use yq in their
CI pipelines etc. Thus we decided to go with yq-go and yq-python and adding
provides=yq to yq-go for backward compatibility for at least one release.

Resolves #16052

Related to #15591
parent 3ade75fd
1 merge request!66043community/yq: rename to yq-python, community/yq-go: add provides=yq
......@@ -3,7 +3,7 @@
#
# NOTE: yq and yq-go are NOT interchangeable, they have quite different CLI
# and syntax. Most distros package this Python implementation as "yq".
pkgname=yq
pkgname=yq-python
pkgver=3.2.3
pkgrel=0
pkgdesc="jq wrapper for YAML/XML/TOML documents"
......@@ -25,7 +25,6 @@ makedepends="
"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
install="$pkgname.post-upgrade"
source="https://github.com/kislyuk/yq/archive/v$pkgver/yq-$pkgver.tar.gz"
builddir="$srcdir/yq-$pkgver"
......
#!/bin/sh
ver_new="$1"
ver_old="$2"
# NOTE: .pre-upgrade doesn't work here, that's why it's in .post-upgrade.
if [ "${ver_new%%.*}" = 3 ] && [ "${ver_old%%.*}" = 4 ]; then
cat >&2 <<-EOF
*
* Until Alpine 3.20, the yq package was mikefarah's Go implementation. Now the
* yq package is kislyuk's Python implementation (as in most distros), and the
* Go implementation has been renamed to yq-go. They are incompatible.
*
* If you want to keep the Go implementation: apk del yq && apk add yq-go
*
EOF
fi
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment