Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package go-licenses for openSUSE:Factory 
checked in at 2025-09-09 20:30:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/go-licenses (Old)
 and      /work/SRC/openSUSE:Factory/.go-licenses.new.1977 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "go-licenses"

Tue Sep  9 20:30:25 2025 rev:2 rq:1303387 version:2.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/go-licenses/go-licenses.changes  2024-10-08 
17:25:21.151391958 +0200
+++ /work/SRC/openSUSE:Factory/.go-licenses.new.1977/go-licenses.changes        
2025-09-09 20:30:53.286852235 +0200
@@ -1,0 +2,17 @@
+Mon Sep 08 13:10:51 UTC 2025 - Jeff Kowalczyk <[email protected]>
+
+- Update to version 2.0.1:
+  * chore: update golang.org/x/tools to v0.36.0 to resolve the build error 
(#334)
+  * fix: Update README.md for go install command (#336)
+  * doc: update install instructions for v2. (#331)
+- Packaging improvements:
+  * Add upstream pr329-fix-detect-stdlib-modules.patch
+
+-------------------------------------------------------------------
+Tue Sep  2 02:47:40 UTC 2025 - Jeff Kowalczyk <[email protected]>
+
+- Update to version 2.0.0:
+  * No source changes. Upstream tagged a stable release and marked
+    the project as looking for a new maintainer.
+
+-------------------------------------------------------------------

Old:
----
  go-licenses-2.0.0alpha1.tar.gz

New:
----
  go-licenses-2.0.1.tar.gz
  pr329-fix-detect-stdlib-modules.patch

----------(New B)----------
  New:- Packaging improvements:
  * Add upstream pr329-fix-detect-stdlib-modules.patch
----------(New E)----------

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

Other differences:
------------------
++++++ go-licenses.spec ++++++
--- /var/tmp/diff_new_pack.rsEkM2/_old  2025-09-09 20:30:54.078885614 +0200
+++ /var/tmp/diff_new_pack.rsEkM2/_new  2025-09-09 20:30:54.082885782 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package go-licenses
 #
-# 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
@@ -17,7 +17,7 @@
 
 
 Name:           go-licenses
-Version:        2.0.0alpha1
+Version:        2.0.1
 Release:        0
 Summary:        CLI tool to report the licenses used by a Go package and its 
dependencies
 License:        Apache-2.0
@@ -25,6 +25,7 @@
 URL:            https://github.com/google/go-licenses
 Source:         %{name}-%{version}.tar.gz
 Source1:        vendor.tar.gz
+Patch0:         pr329-fix-detect-stdlib-modules.patch
 BuildRequires:  golang(API) >= 1.19
 
 %description
@@ -34,7 +35,7 @@
 into a directory in order to comply with license terms on redistribution.
 
 %prep
-%autosetup -a 1
+%autosetup -a 1 -p 1
 
 %build
 %ifnarch ppc64

++++++ _service ++++++
--- /var/tmp/diff_new_pack.rsEkM2/_old  2025-09-09 20:30:54.118887299 +0200
+++ /var/tmp/diff_new_pack.rsEkM2/_new  2025-09-09 20:30:54.126887636 +0200
@@ -3,11 +3,10 @@
     <param name="url">https://github.com/google/go-licenses.git</param>
     <param name="scm">git</param>
     <param name="exclude">.git</param>
-    <param name="revision">v2.0.0-alpha.1</param>
+    <param name="revision">v2.0.1</param>
     <param name="versionformat">@PARENT_TAG@</param>
     <param name="changesgenerate">enable</param>
-    <param name="versionrewrite-pattern">v(.*)-alpha.1</param>
-    <param name="versionrewrite-replacement">\1alpha1</param>
+    <param name="versionrewrite-pattern">v(.*)</param>
   </service>
   <service name="set_version" mode="manual">
   </service>

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.rsEkM2/_old  2025-09-09 20:30:54.162889154 +0200
+++ /var/tmp/diff_new_pack.rsEkM2/_new  2025-09-09 20:30:54.166889323 +0200
@@ -1,6 +1,6 @@
 <servicedata>
 <service name="tar_scm">
                 <param 
name="url">https://github.com/google/go-licenses.git</param>
-              <param 
name="changesrevision">d01822334fba5896920a060f762ea7ecdbd086e8</param></service></servicedata>
+              <param 
name="changesrevision">3e084b0caf710f7bfead967567539214f598c0a2</param></service></servicedata>
 (No newline at EOF)
 

++++++ go-licenses-2.0.0alpha1.tar.gz -> go-licenses-2.0.1.tar.gz ++++++
/work/SRC/openSUSE:Factory/go-licenses/go-licenses-2.0.0alpha1.tar.gz 
/work/SRC/openSUSE:Factory/.go-licenses.new.1977/go-licenses-2.0.1.tar.gz 
differ: char 12, line 1

++++++ pr329-fix-detect-stdlib-modules.patch ++++++
>From 2e99d4044f9acaef1a9375b5e2a7c6c634a6f3d3 Mon Sep 17 00:00:00 2001
From: Adam Connelly <[email protected]>
Date: Fri, 30 May 2025 15:18:02 +0100
Subject: [PATCH] fix: problem detecting stdlib modules when using toolchains

If the pkg.Module is `nil`, it's either part of the stdlib or it's not 
something that go-licenses can analyze correctly. Let's just skip modules like 
this instead of reporting an error.

The problem with the existing check is that it assumes that stdlib packages 
will have source files under `build.Default.GOROOT`. But if the module you're 
trying to analyze has a `toolchain` directive in its go.mod file that differs 
from the version of Go installed, the package will have a path outside of this 
directory.
---
 licenses/library.go | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/licenses/library.go b/licenses/library.go
index fa59120f..b26bcbd7 100644
--- a/licenses/library.go
+++ b/licenses/library.go
@@ -154,12 +154,6 @@ func Libraries(ctx context.Context, classifier Classifier, 
includeTests bool, ig
                                return true
                        }
 
-                       if p.Module == nil {
-                               otherErrorOccurred = true
-                               klog.Errorf("Package %s does not have module 
info. Non go modules projects are no longer supported. For feedback, refer to 
https://github.com/google/go-licenses/issues/128.";, p.PkgPath)
-                               return false
-                       }
-
                        module := newModule(p.Module)
 
                        if module.Dir == "" {
@@ -411,6 +405,10 @@ func (l *Library) Version() string {
 
 // isStdLib returns true if this package is part of the Go standard library.
 func isStdLib(pkg *packages.Package) bool {
+       if pkg.Module == nil {
+               return true
+       }
+
        if pkg.Name == "unsafe" {
                // Special case unsafe stdlib, because it does not contain go 
files.
                return true

++++++ vendor.tar.gz ++++++
++++ 65555 lines of diff (skipped)

Reply via email to