Skip to content

Migrate gemini mutator from deprecated generative-ai-go to google.golang.org/genai #1162

Description

@batmac

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions