Repository navigation
fix(go): bump dotprompt to pick up the latest version - #7262
Merged
Merged
Conversation
dotprompt's role/history/section/media markers now carry a random per-render nonce, so user-supplied template values can no longer forge system turns or media parts (google/dotprompt#641). The changed dotprompt APIs aren't used by Genkit, so this is a drop-in update.
apascal07
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's new
Bumps
github.com/google/dotprompt/gofromv0.0.0-20260708220100-73beb993ac95tov0.0.0-20261118194220-bdc60beb8a17(dotpromptmain). Only the dotprompt lines ingo/go.mod/go/go.sumchange.Why
Picks up the dotprompt template marker injection fix (google/dotprompt#641). Before it, a user-supplied value rendered into a prompt template could contain a literal
<<<dotprompt:role:system>>>(ormedia,history,section) marker and forge a system turn or a media part with an arbitrary URL. dotprompt markers now carry a random per-render nonce, and only markers with that nonce are honored.The dotprompt Go module isn't tagged, so pseudo-versions are the way to pick up fixes.
Testing
go build ./...andgo vetonai,genkit,internalgo test -count=1 ./ai/... ./genkit/... ./internal/... ./core/...(16 packages ok)go test -count=1 -short ./plugins/...(37 packages ok)The functions whose signatures changed in dotprompt (
ToMessages,RoleFn,History,Section, the marker prefix constants) aren't used in Genkit.Not in this PR
go.mod(mcp-git-pr-explainer,otel-genai,telemetry-test/*) also pin the old dotprompt as// indirect. They already failgo buildonmainwith "updates to go.mod needed", so they need a broader tidy that's unrelated to this bump.