8 Commits

Author SHA256 Message Date
2107985324 Accepting request 1318294 from utilities
- update to 4.48.2:
  * Strip whitespace when decoding base64 #2507
  * Upgraded to go-yaml v4! (thanks @ccoVeille, @ingydotnet)
  * Add linux/loong64 to release target (thanks @znley)
  * Added --shell-key-separator flag for customizable shell
    output format #2497 (thanks @rsleedbx)
- update to 4.48.1:
  * Added 'parents' operator, to return a list of all the
    hierarchical parents of a node
  * Added 'first(exp)' operator, to return the first entry
    matching an expression in an array
  * Fixed xml namespace prefixes #1730 (thanks @baodrate)
  * Fixed out of range panic in yaml decoder #2460 (thanks
    @n471d)
- update to 4.47.2:
  * Conversion from TOML to JSON no longer omits empty tables
    #2459 (thanks @louislouislouislouis)
- update to 4.47.1:
  * Fixed merge anchor behaviour (`<<`); #2404, #2110, #2386,
    #2178 Huge thanks to @stevenwdv!

OBS-URL: https://build.opensuse.org/request/show/1318294
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/yq?expand=0&rev=22
2025-11-18 14:37:38 +00:00
a306f418d0 - update to 1.1.0:
* fix format string
  * Allow easy adjustments of threshold_validity for more control
  * Usage adjustments
  * fix importlib metadata

OBS-URL: https://build.opensuse.org/package/show/utilities/yq?expand=0&rev=46
2025-11-17 17:22:50 +00:00
e6ad38f354 Accepting request 1296513 from utilities
OBS-URL: https://build.opensuse.org/request/show/1296513
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/yq?expand=0&rev=21
2025-07-31 15:46:02 +00:00
d7dfd055ae Fix zsh completion location.
zsh_completion.d is not on zsh's fpath and completions located there doesn't get loaded. Moved completion to /usr/share/zsh/site-functions to make it work for yq.

OBS-URL: https://build.opensuse.org/package/show/utilities/yq?expand=0&rev=44
2025-07-30 08:52:08 +00:00
8a3eaf0472 Accepting request 1293054 from utilities
- update to 4.46.1:
  * Added INI support
  * Fixed 'add' operator when piped in with no data #2378, #2383,
    #2384
  * Fixed delete after slice problem (bad node path) #2387 Thanks
    @antoinedeschenes
  * Fixed yq small build Thanks @imzue
  * Switched to YAML org supported go-yaml!
- update to 4.45.4:
  * Fixing wrong map() behaviour on empty map #2359
- update to 4.45.3:
  * Fixing regression (#2353, #2359, #2325) introduced with in
    4.45.2 with #2325 fix
- update to 4.45.2:
  * Added windows arm builds (Thanks @albertocavalcante,
    @ShukantPal)
  * Added s390x platform support (Thanks @ashokpariya0)
  * Additionally push docker images to ghcr.io (Thanks @reegnz)
  * Fixing add when there is no node match #2325
  * sort_by works on maps
- update to 4.45.1:
  * Create parent directories when --split-exp is used, Thanks
    @rudo-thomas
- drop Bump-golang.org-x-net-from-0.32.0-to-0.33.0.patch (upstream)

OBS-URL: https://build.opensuse.org/request/show/1293054
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/yq?expand=0&rev=20
2025-07-15 14:43:31 +00:00
6f3004a366 - update to 4.46.1:
* Added INI support
  * Fixed 'add' operator when piped in with no data #2378, #2383,
    #2384
  * Fixed delete after slice problem (bad node path) #2387 Thanks
    @antoinedeschenes
  * Fixed yq small build Thanks @imzue
  * Switched to YAML org supported go-yaml!
- update to 4.45.4:
  * Fixing wrong map() behaviour on empty map #2359
- update to 4.45.3:
  * Fixing regression (#2353, #2359, #2325) introduced with in
    4.45.2 with #2325 fix
- update to 4.45.2:
  * Added windows arm builds (Thanks @albertocavalcante,
    @ShukantPal)
  * Added s390x platform support (Thanks @ashokpariya0)
  * Additionally push docker images to ghcr.io (Thanks @reegnz)
  * Fixing add when there is no node match #2325
  * sort_by works on maps
- update to 4.45.1:
  * Create parent directories when --split-exp is used, Thanks
    @rudo-thomas
- drop Bump-golang.org-x-net-from-0.32.0-to-0.33.0.patch (upstream)

OBS-URL: https://build.opensuse.org/package/show/utilities/yq?expand=0&rev=42
2025-07-14 08:02:04 +00:00
c80e323da1 Accepting request 1236178 from utilities
OBS-URL: https://build.opensuse.org/request/show/1236178
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/yq?expand=0&rev=19
2025-01-12 10:14:17 +00:00
bd8cdbd6bd fix CVE-2024-45338
old: utilities/yq
new: home:mslacken:branches:utilities/yq rev None
Index: vendor.tar.gz
===================================================================
Binary files vendor.tar.gz (revision 39) and vendor.tar.gz (revision 3) differ
Index: yq.changes
===================================================================
--- yq.changes (revision 39)
+++ yq.changes (revision 3)
@@ -1,4 +1,27 @@
 -------------------------------------------------------------------
+Wed Jan  8 16:52:32 UTC 2025 - Christian Goll <cgoll@suse.com>
+
+- Updated to 4.44.6:
+  * Fixed deleting items in array bug #2027, #2172; Thanks @jandubois
+  * Docker image for armv7 / raspberry pi3, Thanks @brianegge
+  * Fixed no-colors regression #2218
+  * Fixed various panic scenarios #2211
+  * Bumped dependencies
+- Changes from 4.44.5 (4.44.4 was skipped)
+  * Format comments with a gray foreground (Thanks @gabe565)
+  * Fixed handling of nulls with sort_by expressions #2164
+  * Force no color output when NO_COLOR env presents (Thanks @narqo)
+  * Fixed array subtraction update bug #2159
+  * Fixed index out of range error
+  * Can traverse straight from parent operator (parent.blah)
+  * Bumped dependencies
+
+- Bumped x/net to 0.33.0 to fix CVE-2024-45338
+  * add file Bump-golang.org-x-net-from-0.32.0-to-0.33.0.patch
+
+
+
+-------------------------------------------------------------------
 Mon Aug 12 13:18:36 UTC 2024 - Dirk Müller <dmueller@suse.com>
 
 - update to 4.44.3:
Index: yq.spec
===================================================================
--- yq.spec (revision 39)
+++ yq.spec (revision 3)
@@ -1,7 +1,7 @@
 #
 # spec file for package yq
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -20,13 +20,14 @@
 %global import_path     %{provider_prefix}
 
 Name:           yq
-Version:        4.44.3
+Version:        4.44.6
 Release:        0
 Summary:        A portable command-line YAML processor
 License:        MIT
 URL:            https://github.com/mikefarah/yq
 Source0:        https://github.com/mikefarah/yq/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 Source1:        vendor.tar.gz
+Patch0:         Bump-golang.org-x-net-from-0.32.0-to-0.33.0.patch
 # conflict with all python3X-yq packages since they install /usr/bin/yq
 # we need to handle Leap 15.4 specially since the python3dist() is not
 # generated there
@@ -71,7 +72,7 @@
 Fish command line completion support for %{name}.
 
 %prep
-%setup -qa1
+%autosetup -p1 -a1
 
 %build
 go build -trimpath -buildmode=pie -mod=vendor -o bin/%{name}
Index: Bump-golang.org-x-net-from-0.32.0-to-0.33.0.patch
===================================================================
--- Bump-golang.org-x-net-from-0.32.0-to-0.33.0.patch (added)
+++ Bump-golang.org-x-net-from-0.32.0-to-0.33.0.patch (revision 3)
@@ -0,0 +1,56 @@
+From 7efae2dad9f3900a5d4e3ef275735657f0a34d2a Mon Sep 17 00:00:00 2001
+From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
+Date: Thu, 19 Dec 2024 03:23:37 +0000
+Subject: [PATCH] Bump golang.org/x/net from 0.32.0 to 0.33.0
+
+Bumps [golang.org/x/net](https://github.com/golang/net) from 0.32.0 to 0.33.0.
+- [Commits](https://github.com/golang/net/compare/v0.32.0...v0.33.0)
+
+---
+updated-dependencies:
+- dependency-name: golang.org/x/net
+  dependency-type: direct:production
+  update-type: version-update:semver-minor
+...
+
+Signed-off-by: dependabot[bot] <support@github.com>
+---
+ go.mod | 2 +-
+ go.sum | 8 ++++----
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/go.mod b/go.mod
+index f44bcbbd..56bd2a2c 100644
+--- a/go.mod
++++ b/go.mod
+@@ -16,7 +16,7 @@ require (
+ 	github.com/spf13/cobra v1.8.1
+ 	github.com/spf13/pflag v1.0.5
+ 	github.com/yuin/gopher-lua v1.1.1
+-	golang.org/x/net v0.32.0
++	golang.org/x/net v0.33.0
+ 	golang.org/x/text v0.21.0
+ 	gopkg.in/op/go-logging.v1 v1.0.0-20160211212156-b2cb9fa56473
+ 	gopkg.in/yaml.v3 v3.0.1
+diff --git a/go.sum b/go.sum
+index e8746990..4fec28d7 100644
+--- a/go.sum
++++ b/go.sum
+@@ -62,10 +62,10 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT
+ github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
+ github.com/yuin/gopher-lua v1.1.1 h1:kYKnWBjvbNP4XLT3+bPEwAXJx262OhaHDWDVOPjL46M=
+ github.com/yuin/gopher-lua v1.1.1/go.mod h1:GBR0iDaNXjAgGg9zfCvksxSRnQx76gclCIb7kdAd1Pw=
+-golang.org/x/crypto v0.30.0 h1:RwoQn3GkWiMkzlX562cLB7OxWvjH1L8xutO2WoJcRoY=
+-golang.org/x/crypto v0.30.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk=
+-golang.org/x/net v0.32.0 h1:ZqPmj8Kzc+Y6e0+skZsuACbx+wzMgo5MQsJh9Qd6aYI=
+-golang.org/x/net v0.32.0/go.mod h1:CwU0IoeOlnQQWJ6ioyFrfRuomB8GKF6KbYXZVyeXNfs=
++golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U=
++golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk=
++golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
++golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
+ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+ golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+ golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=
+-- 
+2.43.0
+
Index: yq-4.44.6.tar.gz
===================================================================
Binary file yq-4.44.6.tar.gz (revision 3) added
Index: yq-4.44.3.tar.gz
===================================================================
Binary file yq-4.44.3.tar.gz (revision 39) deleted

OBS-URL: https://build.opensuse.org/package/show/utilities/yq?expand=0&rev=40
2025-01-09 12:31:02 +00:00
5 changed files with 94 additions and 13 deletions

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4dd9229a2fbec337c2fd2ebb19a6452f68facf8b52c37063d073363964759173
size 3199818
oid sha256:7259c7b5ac6ce2d43c22ad5f3ab4e9dccdb6985eda0a9c18c8ab88ba26e0efa7
size 3287716

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ea950f5622480fc0ff3708c52589426a737cd4ec887a52922a74efa1be8f2fbf
size 297938

3
yq-4.48.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:af464e5c227ad3894628de65db2996db0e4716a16388eaf08bfa73e93ad0604e
size 310749

View File

@@ -1,3 +1,83 @@
-------------------------------------------------------------------
Mon Nov 17 17:22:31 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 4.48.2:
* Strip whitespace when decoding base64 #2507
* Upgraded to go-yaml v4! (thanks @ccoVeille, @ingydotnet)
* Add linux/loong64 to release target (thanks @znley)
* Added --shell-key-separator flag for customizable shell
output format #2497 (thanks @rsleedbx)
- update to 4.48.1:
* Added 'parents' operator, to return a list of all the
hierarchical parents of a node
* Added 'first(exp)' operator, to return the first entry
matching an expression in an array
* Fixed xml namespace prefixes #1730 (thanks @baodrate)
* Fixed out of range panic in yaml decoder #2460 (thanks
@n471d)
- update to 4.47.2:
* Conversion from TOML to JSON no longer omits empty tables
#2459 (thanks @louislouislouislouis)
- update to 4.47.1:
* Fixed merge anchor behaviour (`<<`); #2404, #2110, #2386,
#2178 Huge thanks to @stevenwdv!
-------------------------------------------------------------------
Tue Jul 29 21:01:24 UTC 2025 - Alexey Kolos <lioli7k@gmail.com>
- Fix zsh completion location
-------------------------------------------------------------------
Mon Jul 14 08:01:29 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 4.46.1:
* Added INI support
* Fixed 'add' operator when piped in with no data #2378, #2383,
#2384
* Fixed delete after slice problem (bad node path) #2387 Thanks
@antoinedeschenes
* Fixed yq small build Thanks @imzue
* Switched to YAML org supported go-yaml!
- update to 4.45.4:
* Fixing wrong map() behaviour on empty map #2359
- update to 4.45.3:
* Fixing regression (#2353, #2359, #2325) introduced with in
4.45.2 with #2325 fix
- update to 4.45.2:
* Added windows arm builds (Thanks @albertocavalcante,
@ShukantPal)
* Added s390x platform support (Thanks @ashokpariya0)
* Additionally push docker images to ghcr.io (Thanks @reegnz)
* Fixing add when there is no node match #2325
* sort_by works on maps
- update to 4.45.1:
* Create parent directories when --split-exp is used, Thanks
@rudo-thomas
- drop Bump-golang.org-x-net-from-0.32.0-to-0.33.0.patch (upstream)
-------------------------------------------------------------------
Wed Jan 8 16:52:32 UTC 2025 - Christian Goll <cgoll@suse.com>
- Updated to 4.44.6:
* Fixed deleting items in array bug #2027, #2172; Thanks @jandubois
* Docker image for armv7 / raspberry pi3, Thanks @brianegge
* Fixed no-colors regression #2218
* Fixed various panic scenarios #2211
* Bumped dependencies
- Changes from 4.44.5 (4.44.4 was skipped)
* Format comments with a gray foreground (Thanks @gabe565)
* Fixed handling of nulls with sort_by expressions #2164
* Force no color output when NO_COLOR env presents (Thanks @narqo)
* Fixed array subtraction update bug #2159
* Fixed index out of range error
* Can traverse straight from parent operator (parent.blah)
* Bumped dependencies
- Bumped x/net to 0.33.0 to fix CVE-2024-45338
* add file Bump-golang.org-x-net-from-0.32.0-to-0.33.0.patch
-------------------------------------------------------------------
Mon Aug 12 13:18:36 UTC 2024 - Dirk Müller <dmueller@suse.com>

17
yq.spec
View File

@@ -1,7 +1,7 @@
#
# spec file for package yq
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
%global import_path %{provider_prefix}
Name: yq
Version: 4.44.3
Version: 4.48.2
Release: 0
Summary: A portable command-line YAML processor
License: MIT
@@ -35,7 +35,7 @@ Conflicts: python3dist(yq)
%else
Conflicts: python3-yq
%endif
BuildRequires: golang(API) = 1.22
BuildRequires: golang(API) = 1.24
%description
A lightweight and portable command-line YAML processor. yq uses jq like syntax
@@ -71,7 +71,7 @@ BuildArch: noarch
Fish command line completion support for %{name}.
%prep
%setup -qa1
%autosetup -p1 -a1
%build
go build -trimpath -buildmode=pie -mod=vendor -o bin/%{name}
@@ -83,8 +83,8 @@ go test ./...
install -D -m 0755 ./bin/%{name} "%{buildroot}/%{_bindir}/%{name}"
mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions
%{buildroot}/%{_bindir}/%{name} shell-completion bash > %{buildroot}%{_datarootdir}/bash-completion/completions/%{name}
mkdir -p %{buildroot}%{_datarootdir}/zsh_completion.d
%{buildroot}/%{_bindir}/%{name} shell-completion zsh > %{buildroot}%{_datarootdir}/zsh_completion.d/_%{name}
mkdir -p %{buildroot}%{_datarootdir}/zsh/site-functions
%{buildroot}/%{_bindir}/%{name} shell-completion zsh > %{buildroot}%{_datarootdir}/zsh/site-functions/_%{name}
mkdir -p %{buildroot}%{_datadir}/fish/vendor_completions.d
%{buildroot}/%{_bindir}/%{name} shell-completion fish > %{buildroot}%{_datarootdir}/fish/vendor_completions.d/%{name}.fish
@@ -95,8 +95,9 @@ mkdir -p %{buildroot}%{_datadir}/fish/vendor_completions.d
%files zsh-completion
%defattr(-,root,root)
%dir %{_datarootdir}/zsh_completion.d/
%{_datarootdir}/zsh_completion.d/_%{name}
%dir %{_datarootdir}/zsh/
%dir %{_datarootdir}/zsh/site-functions/
%{_datarootdir}/zsh/site-functions/_%{name}
%files fish-completion
%defattr(-,root,root)