[
https://issues.apache.org/jira/browse/BEAM-12159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17320106#comment-17320106
]
Kazuki Nishiura commented on BEAM-12159:
----------------------------------------
It was my lack of understanding, go sdk already takes worker_binary param so I
can just compile on my own and pass the binary
> No way to pass compile option for golang job
> --------------------------------------------
>
> Key: BEAM-12159
> URL: https://issues.apache.org/jira/browse/BEAM-12159
> Project: Beam
> Issue Type: Improvement
> Components: sdk-go
> Reporter: Kazuki Nishiura
> Priority: P3
>
> I wanted to pass below compile time flag to workaround BEAM-12157
> go build -ldflags "-X
> google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn"
>
> However since beam currently re-build binary on its own (see
> [https://github.com/apache/beam/blob/243128a8fc52798e1b58b0cf1a271d95ee7aa241/sdks/go/pkg/beam/runners/universal/runnerlib/compile.go#L88]
> ) there is no way to pass flag.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)