You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GitHub repository with your minimal reproducible example (do not leave this field blank or fill out this field with "github.com/bufbuild/buf" or we will automatically close your issue, see the instructions above!)
This fixes the handling of the Go feature set in editions for use with
checks. Dynamic types would cause the google.golang.org/protobuf
library to panic when trying to fetch the Go feature extension. This is
a temporary workaround until upstream can be resolved. See the issue:
golang/protobuf#1669
When resolving file descriptors for checks, we now check for use of
google/protobuf/go_features.proto and reparse extensions with a resolver
targetted at the gofeaturespb package. This ensure the types will match
the ones set in the extension type gofeaturespb.E_go.
Fixes#3580
@espadolini thanks for the issue! We have a workaround for the bug with the upstream issue being in the protobuf-go library. See golang/protobuf#1669 . It looks like a fix will be upstreamed soon, so we are planning to wait for the library change before updating and creating a new release.
GitHub repository with your minimal reproducible example (do not leave this field blank or fill out this field with "github.com/bufbuild/buf" or we will automatically close your issue, see the instructions above!)
https://github.com/espadolini/buflintrepro
Commands
Output
Expected Output
I expected no panic.
Anything else?
No response
The text was updated successfully, but these errors were encountered: