Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package golangci-lint for openSUSE:Factory 
checked in at 2025-05-26 18:34:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/golangci-lint (Old)
 and      /work/SRC/openSUSE:Factory/.golangci-lint.new.2732 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "golangci-lint"

Mon May 26 18:34:20 2025 rev:39 rq:1279569 version:2.1.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/golangci-lint/golangci-lint.changes      
2025-05-05 22:57:17.054709896 +0200
+++ /work/SRC/openSUSE:Factory/.golangci-lint.new.2732/golangci-lint.changes    
2025-05-26 18:35:59.772582665 +0200
@@ -1,0 +2,5 @@
+Fri May 23 13:38:18 UTC 2025 - Dirk Müller <dmuel...@suse.com>
+
+- properly set the version information in the binary
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ golangci-lint.spec ++++++
--- /var/tmp/diff_new_pack.4dYGhy/_old  2025-05-26 18:36:01.308647417 +0200
+++ /var/tmp/diff_new_pack.4dYGhy/_new  2025-05-26 18:36:01.332648429 +0200
@@ -36,13 +36,16 @@
 
 %build
 %ifnarch ppc64
-export GOFLAGS="-buildmode=pie"
+export GOFLAGS="-buildmode=pie -trimpath"
 %endif
-go build ./cmd/%{name}
+export BUILDDATE=$(date -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%Y-%m-%d)
+go build \
+    -ldflags "-s -w -X main.version=%{version} -X main.commit=OpenBuildService 
-X main.date=$BUILDDATE" \
+    ./cmd/%{name}
 
 %check
 # execute the binary as a basic check
-./%{name} --help
+./%{name} --version | grep -q "%{version}"
 
 %install
 install -D -m 0755 %{name} "%{buildroot}/%{_bindir}/%{name}"

Reply via email to