public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/glab] epel10.3: Fix test for EL9 and 10 with FIPS
@ 2026-11-17 16:12 Mikel Olasagasti Uranga
  0 siblings, 0 replies; only message in thread
From: Mikel Olasagasti Uranga @ 2026-11-17 16:12 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/glab
Branch : epel10.3
Commit : 83a0efa4e3458dc532afe5d69b53a3c96c72a956
Author : Mikel Olasagasti Uranga <mikel@olasagasti.info>
Date   : 2026-11-17T17:10:40+01:00
Stats  : +30/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/glab/c/83a0efa4e3458dc532afe5d69b53a3c96c72a956?branch=epel10.3

Log:
Fix test for EL9 and 10 with FIPS

---
diff --git a/fix-go-test-module-cache-cleanup.patch b/fix-go-test-module-cache-cleanup.patch
new file mode 100644
index 0000000..62eb0bf
--- /dev/null
+++ b/fix-go-test-module-cache-cleanup.patch
@@ -0,0 +1,28 @@
+diff --git a/internal/dependencyfirewall/pm/golang_composed_test.go b/internal/dependencyfirewall/pm/golang_composed_test.go
+index 46869877e..8acb2fc6f 100644
+--- a/internal/dependencyfirewall/pm/golang_composed_test.go
++++ b/internal/dependencyfirewall/pm/golang_composed_test.go
+@@ -81,7 +81,22 @@ func isolateGo(t *testing.T, goenv string) {
+ 	t.Setenv("GITLAB_CI", "")
+ 	t.Setenv("GOENV", envFile)
+ 	t.Setenv("GOPATH", t.TempDir())
+-	t.Setenv("GOMODCACHE", t.TempDir())
++	modCache := t.TempDir()
++	t.Cleanup(func() {
++		err := filepath.Walk(modCache, func(path string, info os.FileInfo, err error) error {
++			if err != nil {
++				return err
++			}
++			if info.IsDir() {
++				return os.Chmod(path, info.Mode().Perm()|0o700)
++			}
++			return nil
++		})
++		if err != nil {
++			t.Errorf("make module cache writable: %v", err)
++		}
++	})
++	t.Setenv("GOMODCACHE", modCache)
+ 	t.Setenv("GOFLAGS", "-modcacherw")
+ 	t.Setenv("GOTOOLCHAIN", "local")
+ 	for _, k := range []string{"GOPROXY", "GONOPROXY", "GONOSUMDB", "GOPRIVATE", "GOSUMDB", "GOINSECURE", "GIT_HTTP_USER_AGENT"} {

diff --git a/glab.spec b/glab.spec
index 2fb8cf0..0fc2b89 100644
--- a/glab.spec
+++ b/glab.spec
@@ -21,6 +21,8 @@ Source0:        %{gosource}
 # Generated by go-vendor-tools
 Source1:        %{archivename}-vendor.tar.bz2
 Source2:        go-vendor-tools.toml
+# https://gitlab.com/gitlab-org/cli/-/merge_requests/4461
+Patch0:         fix-go-test-module-cache-cleanup.patch
 
 BuildRequires:  go-vendor-tools
 BuildRequires:  git-core

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

only message in thread, other threads:[~2026-11-17 16:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-17 16:12 [rpms/glab] epel10.3: Fix test for EL9 and 10 with FIPS Mikel Olasagasti Uranga

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