Skip to content

Bug: google/protobuf/go_features.proto: File not found. #1661

Closed
@chrisprobst

Description

What version of protobuf and what language are you using?
Version: v1.36.0

What did you do?

// demo.proto
edition = "2023";

import "google/protobuf/go_features.proto";

option features.(pb.go).api_level = API_OPAQUE;

message Demo {
  string name = 1;
}
protoc --go_out=. --go-grpc_out=. demo.proto

Following the recent Go blog post and tutorial about OPAQUE API.

What did you expect to see?
The compiled files.

What did you see instead?

$ protoc --go_out=. --go-grpc_out=. demo.proto
google/protobuf/go_features.proto: File not found.
demo.proto:3:1: Import "google/protobuf/go_features.proto" was not found or had errors.

I checked the docs twice, I can't find additional information about this. Is this a bug?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions