Context
github.com/google/generative-ai-go is deprecated and frozen upstream (Google's replacement is google.golang.org/genai). Because it is frozen, it pins an old cloud.google.com/go/ai API: bumping go/ai to v0.20.0 breaks its compilation (genai/files.go: VideoMetadata vs VideoFileMetadata proto mismatch), which is what made the first "go indirect dependencies" Renovate batch (#1158) fail CI.
As a stopgap, .github/renovate.json excludes cloud.google.com/go/ai from updates (see #1161 and the rule's description).
Task
- Port the gemini mutator (
pkg/mutators/single/, uses github.com/google/generative-ai-go/genai) to google.golang.org/genai
- Drop
generative-ai-go from go.mod
- Remove the
cloud.google.com/go/ai exclusion rule from .github/renovate.json so the indirect dependency flows normally again
Notes
🤖 Issue drafted with Claude Code
Context
github.com/google/generative-ai-gois deprecated and frozen upstream (Google's replacement isgoogle.golang.org/genai). Because it is frozen, it pins an oldcloud.google.com/go/aiAPI: bumpinggo/aito v0.20.0 breaks its compilation (genai/files.go:VideoMetadatavsVideoFileMetadataproto mismatch), which is what made the first "go indirect dependencies" Renovate batch (#1158) fail CI.As a stopgap,
.github/renovate.jsonexcludescloud.google.com/go/aifrom updates (see #1161 and the rule'sdescription).Task
pkg/mutators/single/, usesgithub.com/google/generative-ai-go/genai) togoogle.golang.org/genaigenerative-ai-gofrom go.modcloud.google.com/go/aiexclusion rule from.github/renovate.jsonso the indirect dependency flows normally againNotes
go/aiupdates🤖 Issue drafted with Claude Code