Skip to content

Commit 78c84ca

Browse files
committed
Update package.go
1 parent a3d9808 commit 78c84ca

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

serve/package.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ func (s *PluginServe) build(pluginDirectory string, target plugin.BuildTarget, d
132132
args := []string{"build", "-o", pluginPath}
133133
args = append(args, "-buildmode=exe")
134134
args = append(args, "-ldflags", ldFlags)
135+
// This disables gRPC tracing, which introduces a dependency that blocks dead code elimination\
136+
// https://github.com/grpc/grpc-go/blob/030938e543b4a721cd426d15611d50ecf097dcf3/trace_notrace.go#L23-L25
135137
args = append(args, "-tags", "grpcnotrace")
136138
cmd := exec.Command("go", args...)
137139
cmd.Dir = pluginDirectory

0 commit comments

Comments
 (0)