Repository navigation
fix(server): substitute custom-tool placeholders once - #562
Merged
Merged
Conversation
renderTemplate walked the param map and replaced into the string so far,
so a value containing {other} could be expanded on a later key. Replace
each {name} in the original template only.
Contributor
|
Review notes Recommendation: merge this one first. On
Heads-up: #575 fixes the same bug with an equivalent scanner. Only one of the two should land, since they conflict in |
BaaRai
force-pushed
the
fix/render-template
branch
from
November 26, 2026 22:24
38860a3 to
aadd77f
Compare
BaaRai
added a commit
to Coff0xc/ARTEX-contrib
that referenced
this pull request
Nov 26, 2026
Owner
|
Merged, thanks @Coff0xc. Rebased on current main and verified with its tests and negative control. |
BaaRai
added a commit
to 5P34R/ARTEX
that referenced
this pull request
Nov 26, 2026
BaaRai
added a commit
to 5P34R/ARTEX
that referenced
this pull request
Nov 26, 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.
renderTemplateapplied each parameter withReplaceAllon the string so far. Map order decided whether a value containing{other}was expanded again. After shell quoting,'{b}'could still turn into the next argument.Each
{name}is now taken from the original template. Inserted text is not scanned. An unknown placeholder stays as written. Command and HTTP custom tools both use this helper.go test -count=1 -run TestRenderTemplate ./server/passed.