Skip to content

Conversation

@thaJeztah
Copy link
Member

It it just a chain of New("sometag").Parse(...), and most of our uses don't use a tag for the template, so can call Parse.

There's no public users of this function, but deprecating it first just in case.

- Human readable description for the release notes

Go SDK: templates: deprecate NewParse() function.

- A picture of a cute animal (not mandatory but encouraged)

It it just a chain of `New("sometag").Parse(...)`, and most of our
uses don't use a tag for the template, so can call Parse.

There's no public users of this function, but deprecating it first
just in case.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added this to the 29.0.0 milestone Jul 28, 2025
@thaJeztah thaJeztah added impact/deprecation status/2-code-review area/go-sdk Changes affecting the Go SDK impact/go-sdk Noteworthy (compatibility changes) in the Go SDK labels Jul 28, 2025
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
templates/templates.go 50.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@thaJeztah thaJeztah requested a review from Benehiko July 28, 2025 06:54
@thaJeztah thaJeztah merged commit fdc4397 into docker:master Jul 28, 2025
117 of 118 checks passed
@thaJeztah thaJeztah deleted the template_deprecate_newparse branch July 28, 2025 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/go-sdk Changes affecting the Go SDK impact/deprecation impact/go-sdk Noteworthy (compatibility changes) in the Go SDK process/cherry-picked status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants