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

unparsable Go source: expected '}', found 'type' #46

Closed
danwt opened this issue Feb 20, 2023 · 1 comment · Fixed by #74
Closed

unparsable Go source: expected '}', found 'type' #46

danwt opened this issue Feb 20, 2023 · 1 comment · Fixed by #74

Comments

@danwt
Copy link

danwt commented Feb 20, 2023

I've built and installed the tool. Then using buf:

# buf.gen.yaml
# Generated by "buf config migrate-v1beta1". Edit as necessary, and
# remove this comment when you're finished.
version: v1
plugins:
  - name: go
    out: .
    opt: paths=source_relative
  - name: go-grpc
    out: .
    opt: paths=source_relative
  - name: fieldmask
    out: .

And running

✗ buf generate -o pkg/proto
Failure: plugin fieldmask: github.com/<repo>/../<filename>.pb.fieldmask.go: unparsable Go source: 296:1: expected '}', found 'type' (and 9 more errors)

I'm sorry I can't provide a narrower concrete example right now.

@danwt danwt changed the title unparsable Go source: 296:1: expected '}', found 'type' unparsable Go source: expected '}', found 'type' Feb 20, 2023
@idodod
Copy link
Owner

idodod commented Feb 27, 2023

Hi @danwt ,
Thanks for reporting the issue.
Would you mind sharing the proto file (or an example proto file) that reproduces the issue?

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

Successfully merging a pull request may close this issue.

2 participants