public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mikel Olasagasti Uranga <mikel@olasagasti.info>
To: git-commits@fedoraproject.org
Subject: [rpms/glab] f44: Fix test for EL9 and 10 with FIPS
Date: Tue, 17 Nov 2026 16:11:39 GMT [thread overview]
Message-ID: <179493189917.1.8210309371659096467.rpms-glab-83a0efa4e345@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/glab
Branch : f44
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=f44
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
reply other threads:[~2026-11-17 16:11 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=179493189917.1.8210309371659096467.rpms-glab-83a0efa4e345@fedoraproject.org \
--to=mikel@olasagasti.info \
--cc=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