Repository navigation
fix: Restore GenerateJSON so plugin binaries keep method dead code elimination - #2664
Merged
Merged
Conversation
⏱️ Benchmark resultsComparing with 6a9b030
|
stoovon
approved these changes
Nov 5, 2026
stoovon
left a comment
Contributor
There was a problem hiding this comment.
Two suggestions. Neither is a blocker:
- The test passes if
-dumpdepprints nothing. Please also assert that one known edge is present, for exampledocs.(*Generator).GenerateJSON. - A short comment on
GenerateJSONwould say why it is separate fromGenerate:Generatelinkstext/template. Without that comment, it was removed once already as a duplicate.
kodiakhq Bot
pushed a commit
that referenced
this pull request
Nov 6, 2026
🤖 I have created a release *beep* *boop* --- ## [4.100.1](v4.100.0...v4.100.1) (2026-11-05) ### Bug Fixes * **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.29.0 ([#2662](#2662)) ([6a9b030](6a9b030)) * Restore GenerateJSON so plugin binaries keep method dead code elimination ([#2664](#2664)) ([248393e](248393e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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.
Summary
The
doccommand callsGenerateJSONagain, becauseGeneratelinkstext/templateand turns off method dead code elimination in every plugin binary.Manual QA
TestPluginBinaryKeepsMethodDeadCodeEliminationfails onmain(text/template.(*state).evalField <ReflectMethod>is reachable) and passes on this branch.-ldflags=-dumpdep.make lint testpasses.Use the following steps to ensure your PR is ready to be reviewed
go fmtto format your codegolangci-lint run