Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package zk for openSUSE:Factory checked in at 2024-11-25 23:21:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/zk (Old) and /work/SRC/openSUSE:Factory/.zk.new.28523 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "zk" Mon Nov 25 23:21:04 2024 rev:9 rq:1226122 version:0.14.1 Changes: -------- --- /work/SRC/openSUSE:Factory/zk/zk.changes 2024-05-28 17:29:26.081360214 +0200 +++ /work/SRC/openSUSE:Factory/.zk.new.28523/zk.changes 2024-11-25 23:21:16.486109475 +0100 @@ -1,0 +2,5 @@ +Sun Nov 24 19:36:45 UTC 2024 - Andrea Manzini <[email protected]> + +- added fix_test.patch to fix build fail due to test TestFormatDateHelperElapsedYear + +------------------------------------------------------------------- New: ---- fix_test.patch BETA DEBUG BEGIN: New: - added fix_test.patch to fix build fail due to test TestFormatDateHelperElapsedYear BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ zk.spec ++++++ --- /var/tmp/diff_new_pack.9rMzdP/_old 2024-11-25 23:21:17.218139987 +0100 +++ /var/tmp/diff_new_pack.9rMzdP/_new 2024-11-25 23:21:17.218139987 +0100 @@ -25,6 +25,8 @@ URL: https://github.com/zk-org/zk Source0: https://github.com/zk-org/zk/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: vendor.tar.zst +# PATCH-FIX-UPSTREAM fix_test.patch -- based on commit e3c5784fb84a792491724fe4cc1f26e2c9d01b60 +Patch0: fix_test.patch BuildRequires: c_compiler BuildRequires: zstd BuildRequires: golang(API) @@ -38,6 +40,7 @@ %prep %setup -qa1 +%autopatch -p1 %build %ifarch ppc64 @@ -46,7 +49,7 @@ BUILDMOD="-buildmode=pie" %endif export RPM_OPT_FLAGS="%{optflags}" -go build -v -x -mod=vendor $BUILDMOD -a -ldflags "-s -X main.Version=%{version} -X main.Build=b71a74e" --tags "icu json1 fts5 secure_delete" +go build -v -x -mod=vendor $BUILDMOD -a -ldflags "-s -X main.Version=%{version} -X main.Build=578894f" --tags "icu json1 fts5 secure_delete" %install install -Dm755 zk %{buildroot}%{_bindir}/zk ++++++ fix_test.patch ++++++ >From e3c5784fb84a792491724fe4cc1f26e2c9d01b60 Mon Sep 17 00:00:00 2001 From: tjex <[email protected]> Date: Tue, 19 Nov 2024 10:01:25 +0100 Subject: [PATCH] fix test. Set current day one month in advance --- internal/adapter/handlebars/handlebars_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/adapter/handlebars/handlebars_test.go b/internal/adapter/handlebars/handlebars_test.go index 558c2529..975a3c5d 100644 --- a/internal/adapter/handlebars/handlebars_test.go +++ b/internal/adapter/handlebars/handlebars_test.go @@ -242,7 +242,9 @@ func TestFormatDateHelper(t *testing.T) { func TestFormatDateHelperElapsedYear(t *testing.T) { year := time.Now().UTC().Year() - 14 - context := map[string]interface{}{"now": time.Date(year, 11, 17, 20, 34, 58, 651387237, time.UTC)} + month := time.Now().UTC().Month() + 1 + day := time.Now().UTC().Day() + context := map[string]interface{}{"now": time.Date(year, month, day, 20, 34, 58, 651387237, time.UTC)} testString(t, "{{format-date now 'elapsed'}}", context, "14 years ago") } ++++++ vendor.tar.zst ++++++
