Skip to content

fix: keep gomega in go.sum across renovate updates#149

Merged
peter-svensson merged 1 commit into
mainfrom
fix/integration-go-sum
May 7, 2026
Merged

fix: keep gomega in go.sum across renovate updates#149
peter-svensson merged 1 commit into
mainfrom
fix/integration-go-sum

Conversation

@peter-svensson

@peter-svensson peter-svensson commented May 7, 2026

Copy link
Copy Markdown
Member

Summary

Renovate-driven ginkgo and gomega bumps fail integration tests with
missing go.sum entry for module providing package github.com/onsi/...
(see PR #131, #132). Root cause: test/integration/{integration,operator}_test.go
import them behind //go:build integration, but go mod tidy ignores
files behind custom build tags, so it strips or omits them from go.sum
during the upgrade.

Fix: add a tag-free deps_test.go with blank imports of both ginkgo/v2
and gomega in the same package. Tidy now sees them from default builds
and keeps them tracked. No runtime impact — file builds alone (side-effect
imports only) without the tag, sits next to the real users with the tag.

Test plan

@peter-svensson peter-svensson requested a review from argoyle as a code owner May 7, 2026 10:24
@opzkit-auto-merge opzkit-auto-merge Bot enabled auto-merge (squash) May 7, 2026 10:24
`test/integration/{integration,operator}_test.go` import gomega behind
the `//go:build integration` tag. `go mod tidy` ignores tagged files,
so renovate-driven version bumps strip or omit gomega from go.sum,
breaking the integration job (e.g. PR #132).

Add a tag-free blank import in the same package so tidy keeps gomega
tracked. The file has no runtime impact: under the integration tag it
sits next to the real users; without the tag it builds alone with
just the side-effect import.
@peter-svensson peter-svensson force-pushed the fix/integration-go-sum branch from 24330ec to a4be83f Compare May 7, 2026 10:25
@peter-svensson peter-svensson disabled auto-merge May 7, 2026 10:33
@peter-svensson peter-svensson merged commit d29f3d3 into main May 7, 2026
7 checks passed
@peter-svensson peter-svensson deleted the fix/integration-go-sum branch May 7, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant