Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go-polyglot plugin fail with a error #27

Closed
nicolaenicora opened this issue Aug 27, 2023 · 1 comment
Closed

go-polyglot plugin fail with a error #27

nicolaenicora opened this issue Aug 27, 2023 · 1 comment

Comments

@nicolaenicora
Copy link

Hi Team,

`
protoc --plugin=protoc-gen-go-polyglot=$GOBIN/protoc-gen-go-polyglot --go-polyglot_out=. echo.proto
panic: template: headers.templ:2:33: executing "headers" at <{{.pluginVersion}}>: can't print {{.pluginVersion}} of type func() string

goroutine 1 [running]:
main.main()
/Users/GoLib/src/github.com/loopholelabs/polyglot/protoc-gen-go-polyglot/main.go:41 +0x11a
--go-polyglot_out: protoc-gen-go-polyglot: Plugin failed with status code 2.

`

Where:
https://github.com/loopholelabs/polyglot/blob/staging/generator/golang/generator.go#L120
should be ´"pluginVersion": version.Version -> version.Version()´

@nicolaenicora nicolaenicora changed the title go-polyglot plugin does crash go-polyglot plugin fail with a error Aug 27, 2023
ShivanshVij added a commit that referenced this issue Oct 12, 2023
Signed-off-by: Shivansh Vij <shivanshvij@loopholelabs.io>
ShivanshVij added a commit that referenced this issue Oct 12, 2023
Signed-off-by: Shivansh Vij <shivanshvij@loopholelabs.io>
@ShivanshVij
Copy link
Member

Fixed in v1.1.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants