Skip to content

Non-Lite Protos #96

Open
Open
@dhulihan

Description

@dhulihan

Hi, I'm trying to include a phonenumbers.PhoneNumber proto in another proto file (a v3 file that is not using LITE_RUNTIME) like so:

// phone_number.proto
syntax = "proto3";

package phoneproto;

option go_package="github.com/foo/bar/phoneproto";

import "github.com/nyaruka/phonenumbers/phonenumber.proto";

message PhoneNumberRequest {
    phonenumbers.PhoneNumber phone_number = 1;
}

but i'm getting an error when compiling to go:

phone_number.proto: Files that do not use optimize_for = LITE_RUNTIME cannot import files which do use this option.  This file is not lite, but it imports "github.com/nyaruka/phonenumbers/phonenumber.proto" which is.

I really like that protos are available, but it would be nice to be able to reuse your proto files that don't use LITE_RUNTIME.

Metadata

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