public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/golang-x-exp] rawhide: Update to commit 2ab7f3c
Date: Wed, 14 Oct 2026 17:05:34 GMT [thread overview]
Message-ID: <179199753412.1.15504107930538059437.rpms-golang-x-exp-0e5efff0e3a9@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/golang-x-exp
Branch : rawhide
Commit : 0e5efff0e3a9d1d24d0a91d5d4af76acd0ab52f7
Author : Álex Sáez <asm@redhat.com>
Date : 2026-10-14T19:05:19+02:00
Stats : +37/-16 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/golang-x-exp/c/0e5efff0e3a9d1d24d0a91d5d4af76acd0ab52f7?branch=rawhide
Log:
Update to commit 2ab7f3c
---
diff --git a/.gitignore b/.gitignore
index 4f4a995..30d3bbc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
/exp-ce4c2cf36ca66590d58a095f544974374ea9c33e.tar.gz
/exp-74f9aab9d74a4012175b91c1a8e1ba154982d891.tar.gz
/exp-764159d718efdc208c8aca89cf725febea120ec1.tar.gz
+/exp-2ab7f3cbc5fb8d9f07593f3a44bd0e66940f42c8.tar.gz
diff --git a/fix-exportdata-test-module-mode.patch b/fix-exportdata-test-module-mode.patch
new file mode 100644
index 0000000..fbd8471
--- /dev/null
+++ b/fix-exportdata-test-module-mode.patch
@@ -0,0 +1,10 @@
+--- a/cmd/apidiff/exportdata_test.go
++++ b/cmd/apidiff/exportdata_test.go
+@@ -22,6 +22,7 @@ import (
+ // dropped; either would be reported as a spurious change when the file
+ // is compared against the module loaded from source.
+ func TestModuleExportDataRoundTrip(t *testing.T) {
++ t.Setenv("GO111MODULE", "on")
+ if _, err := exec.LookPath("go"); err != nil {
+ t.Skipf("go command not available: %v", err)
+ }
diff --git a/fix-scan-test-format.patch b/fix-scan-test-format.patch
deleted file mode 100644
index b356004..0000000
--- a/fix-scan-test-format.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/errors/fmt/scan_test.go
-+++ b/errors/fmt/scan_test.go
-@@ -956,7 +956,7 @@ func TestScanStateCount(t *testing.T) {
- t.Errorf("bad scan rune: %q %q %q should be '1' '2' '➂'", a.rune, b.rune, c.rune)
- }
- if a.size != 1 || b.size != 1 || c.size != 3 {
-- t.Errorf("bad scan size: %q %q %q should be 1 1 3", a.size, b.size, c.size)
-+ t.Errorf("bad scan size: %d %d %d should be 1 1 3", a.size, b.size, c.size)
- }
- }
-
diff --git a/golang-x-exp.spec b/golang-x-exp.spec
index e670a5c..9d695d2 100644
--- a/golang-x-exp.spec
+++ b/golang-x-exp.spec
@@ -9,7 +9,7 @@
# https://github.com/golang/exp
%global goipath golang.org/x/exp
%global forgeurl https://github.com/golang/exp
-%global commit 764159d718efdc208c8aca89cf725febea120ec1
+%global commit 2ab7f3cbc5fb8d9f07593f3a44bd0e66940f42c8
%gometa
@@ -33,8 +33,10 @@ License: BSD-3-Clause AND Apache-2.0
URL: %{gourl}
Source: %{gosource}
-# Fix format specifier in scan_test.go for integer values
-Patch0: fix-scan-test-format.patch
+# The export-data test uses a module fixture under Fedora's GOPATH test mode
+Patch0: fix-exportdata-test-module-mode.patch
+# Keep source-backed loading with Fedora's older go/packages implementation
+Patch1: restore-apidiff-load-mode.patch
BuildRequires: libglvnd-devel
@@ -73,7 +75,6 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%check
for test in "TestRelease_gitRepo_uncommittedChanges" \
"TestFailure" \
- "TestCertificateTransparency" \
; do
awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test)
done
diff --git a/restore-apidiff-load-mode.patch b/restore-apidiff-load-mode.patch
new file mode 100644
index 0000000..b7cf838
--- /dev/null
+++ b/restore-apidiff-load-mode.patch
@@ -0,0 +1,20 @@
+--- a/cmd/apidiff/main.go
++++ b/cmd/apidiff/main.go
+@@ -138,7 +138,7 @@
+ func loadPackage(fset *token.FileSet, importPath string) (*packages.Package, error) {
+ cfg := &packages.Config{
+ Fset: fset,
+- Mode: packages.NeedName | packages.NeedTypes,
++ Mode: packages.NeedName | packages.NeedTypes | packages.NeedDeps,
+ }
+ pkgs, err := packages.Load(cfg, importPath)
+ if err != nil {
+@@ -181,7 +181,7 @@
+ func loadModule(fset *token.FileSet, modulepath string) (*apidiff.Module, error) {
+ cfg := &packages.Config{
+ Fset: fset,
+- Mode: packages.NeedName | packages.NeedTypes | packages.NeedModule,
++ Mode: packages.NeedName | packages.NeedTypes | packages.NeedModule | packages.NeedDeps,
+ }
+ loaded, err := packages.Load(cfg, fmt.Sprintf("%s/...", modulepath))
+ if err != nil {
diff --git a/sources b/sources
index 67710d4..bf41322 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (exp-764159d718efdc208c8aca89cf725febea120ec1.tar.gz) = 1435e28a840df79970bd97b264a1f6b1052c3dc051fb978161cec90a27abcd1e48f052efd0889cec458fdd53c1d1e9ca2f50c19a8c5ea1ac78751a2f54296f96
+SHA512 (exp-2ab7f3cbc5fb8d9f07593f3a44bd0e66940f42c8.tar.gz) = 4878bd98104ad93d0098605ed2ad63150f8e2c456c68df33d43211f6e7976ab4b59a59845c6644513b01e2cb5f0bb38c7a71ef4476eed7261d229229bfa2b32a
reply other threads:[~2026-10-14 17:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179199753412.1.15504107930538059437.rpms-golang-x-exp-0e5efff0e3a9@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox