public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/golang-x-mod] f44: Fix go vet errors
@ 2026-09-28 13:05 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-09-28 13:05 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/golang-x-mod
Branch : f44
Commit : 949447fb7915efbfd8f47b815fa0ba22505380a4
Author : Álex Sáez <asm@redhat.com>
Date   : 2026-09-28T15:04:48+02:00
Stats  : +27/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/golang-x-mod/c/949447fb7915efbfd8f47b815fa0ba22505380a4?branch=f44

Log:
Fix go vet errors

---
diff --git a/fix-go-vet-errors.patch b/fix-go-vet-errors.patch
new file mode 100644
index 0000000..eea70ea
--- /dev/null
+++ b/fix-go-vet-errors.patch
@@ -0,0 +1,25 @@
+From a1a46cd6044dfeb957c3490c048462aabd3c2081 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=81lex=20S=C3=A1ez?= <asm@redhat.com>
+Date: Mon, 28 Sep 2026 12:35:57 +0000
+Subject: [PATCH] Fix go vet errors
+
+---
+ modfile/read.go | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/modfile/read.go b/modfile/read.go
+index 2d74868..ab97705 100644
+--- a/modfile/read.go
++++ b/modfile/read.go
+@@ -600,7 +600,7 @@ func (in *input) readToken() {
+ 
+ 	// Checked all punctuation. Must be identifier token.
+ 	if c := in.peekRune(); !isIdent(c) {
+-		in.Error(fmt.Sprintf("unexpected input character %#q", c))
++		in.Error(fmt.Sprintf("unexpected input character %#q", rune(c)))
+ 	}
+ 
+ 	// Scan over identifier.
+-- 
+2.55.0
+

diff --git a/golang-x-mod.spec b/golang-x-mod.spec
index 4e2262a..c92aa15 100644
--- a/golang-x-mod.spec
+++ b/golang-x-mod.spec
@@ -23,6 +23,7 @@ Summary:        Go module mechanics libraries
 License:        BSD-3-Clause
 URL:            %{gourl}
 Source0:        %{gosource}
+Patch:		fix-go-vet-errors.patch
 
 %description
 %{common_description}
@@ -31,6 +32,7 @@ Source0:        %{gosource}
 
 %prep
 %goprep
+%autopatch -p1
 
 %generate_buildrequires
 %go_generate_buildrequires

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-28 13:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-28 13:05 [rpms/golang-x-mod] f44: Fix go vet errors 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox