Skip to content

fix(snippets): require ces module in internal/generated/snippets/go.mod#14018

Open
Sebastianhayashi wants to merge 2 commits intogoogleapis:mainfrom
Sebastianhayashi:codex/fix-14005
Open

fix(snippets): require ces module in internal/generated/snippets/go.mod#14018
Sebastianhayashi wants to merge 2 commits intogoogleapis:mainfrom
Sebastianhayashi:codex/fix-14005

Conversation

@Sebastianhayashi
Copy link
Copy Markdown

Fixes #14005.

Root cause

internal/generated/snippets/go.mod already had:

  • replace cloud.google.com/go/ces => ../../../ces

but no matching require entry. As a result, CES snippet packages fail to resolve with:

module cloud.google.com/go/ces provides package ... and is replaced but not required.

Fix

Add a single line in internal/generated/snippets/go.mod:

  • cloud.google.com/go/ces v0.1.0

No other files or dependency versions are changed.

Verification

Target command used in evidence:

  • cd internal/generated/snippets && go test ./ces/...

Observed in evidence logs:

  • before: exit code 1 (setup failed across CES snippet packages)
  • after: exit code 0 ([no test files], build succeeds)

Local note: this environment does not have go installed (go: command not found), so I could not re-run Go tests in this shell after cherry-picking the same one-line fix.

@google-cla
Copy link
Copy Markdown

google-cla bot commented Feb 27, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a require directive for cloud.google.com/go/ces to internal/generated/snippets/go.mod. This resolves a build error caused by having a replace directive for this module without a corresponding require entry. The change is a single-line addition and appears correct.

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.

internal/generated/ces/apiv1beta/WidgetClient/ListOperations: TestMain failed

1 participant