From e4ecb88d3705be36618e27c2adf5eed5717d1d49 Mon Sep 17 00:00:00 2001
From: Hoang Nguyen <folliekazetani@protonmail.com>
Date: Sun, 15 Dec 2024 00:00:00 +0700
Subject: [PATCH] testing/virter: upgrade to 0.28.1

---
 testing/virter/APKBUILD             | 10 +++++-----
 testing/virter/update-mockery.patch | 26 ++++++++++++++------------
 2 files changed, 19 insertions(+), 17 deletions(-)

diff --git a/testing/virter/APKBUILD b/testing/virter/APKBUILD
index 3338c5ebc943..05b73ba61463 100644
--- a/testing/virter/APKBUILD
+++ b/testing/virter/APKBUILD
@@ -1,7 +1,7 @@
-# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
+maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
 pkgname=virter
-pkgver=0.27.0
-pkgrel=3
+pkgver=0.28.1
+pkgrel=0
 pkgdesc="CLI tool for simple creation and cloning of libvirt virtual machines"
 url="https://github.com/LINBIT/virter"
 arch="all"
@@ -53,6 +53,6 @@ package() {
 }
 
 sha512sums="
-4f6edd24eaf84b7fc08efcf2155e5e82c111cda36c380fee01094ecf5e41897fcec76306ffdd2a2e160591faf1d0776c49f6f47340b6960346a882c08dd34fd0  virter-0.27.0.tar.gz
-8e383f190f0f9489e328257cb974d50be9b1f2cf862f2454beb89866ebb79c4745a08850b964ad5da7bac0c39059fdc643fcc8ce58c6af7b1216112fbb50582b  update-mockery.patch
+e321473827efb0edebb527e013796869d960256351fd7bb89d7479fdf8e4e409b877e2d5fdd7075e4c9ab6cb253fdeee4a691d48060027d73f41243128d963ca  virter-0.28.1.tar.gz
+720523d71144d8a83604867f05fc02a99bc46b5c827202a365ff4bd88cc73e00c1633648405983c3741a453e793c136ebc4bc9a2c4312381e7dd833797437f32  update-mockery.patch
 "
diff --git a/testing/virter/update-mockery.patch b/testing/virter/update-mockery.patch
index 3596e300df48..b398bda07bdf 100644
--- a/testing/virter/update-mockery.patch
+++ b/testing/virter/update-mockery.patch
@@ -1,19 +1,21 @@
-Update to latest for Go 1.22 compatibility
+Update to latest for Go compatibility
 
+diff --git a/internal/virter/virter_test.go b/internal/virter/virter_test.go
+index dc27b2d..6713361 100644
 --- a/internal/virter/virter_test.go
 +++ b/internal/virter/virter_test.go
-@@ -7,10 +7,10 @@
+@@ -7,10 +7,10 @@ import (
  	"github.com/LINBIT/virter/internal/virter/mocks"
  )
- 
--//go:generate go run github.com/vektra/mockery/v2@v2.38.0 --name=ShellClient
--//go:generate go run github.com/vektra/mockery/v2@v2.38.0 --name=AfterNotifier
--//go:generate go run github.com/vektra/mockery/v2@v2.38.0 --name=NetworkCopier --dir=../../pkg/netcopy
--//go:generate go run github.com/vektra/mockery/v2@v2.38.0 --name=KeyStore --dir=../../pkg/sshkeys
-+//go:generate go run github.com/vektra/mockery/v2@v2.42.1 --name=ShellClient
-+//go:generate go run github.com/vektra/mockery/v2@v2.42.1 --name=AfterNotifier
-+//go:generate go run github.com/vektra/mockery/v2@v2.42.1 --name=NetworkCopier --dir=../../pkg/netcopy
-+//go:generate go run github.com/vektra/mockery/v2@v2.42.1 --name=KeyStore --dir=../../pkg/sshkeys
- 
+
+-//go:generate go run github.com/vektra/mockery/v2@v2.40.3 --name=ShellClient
+-//go:generate go run github.com/vektra/mockery/v2@v2.40.3 --name=AfterNotifier
+-//go:generate go run github.com/vektra/mockery/v2@v2.40.3 --name=NetworkCopier --dir=../../pkg/netcopy
+-//go:generate go run github.com/vektra/mockery/v2@v2.40.3 --name=KeyStore --dir=../../pkg/sshkeys
++//go:generate go run github.com/vektra/mockery/v2@v2.50.0 --name=ShellClient
++//go:generate go run github.com/vektra/mockery/v2@v2.50.0 --name=AfterNotifier
++//go:generate go run github.com/vektra/mockery/v2@v2.50.0 --name=NetworkCopier --dir=../../pkg/netcopy
++//go:generate go run github.com/vektra/mockery/v2@v2.50.0 --name=KeyStore --dir=../../pkg/sshkeys
+
  const poolName = "some-pool"
  const networkName = "some-network"
-- 
GitLab