Skip to content

Request for add new option to support ignore import and do not generate its related code #1020

Open
@kakuiho

Description

see also #1018

You can generate code for the (dependency) imports with this option:

# buf.gen.yaml
inputs:
  - directory: proto
plugins:
  - remote: buf.build/bufbuild/es:v2.2.0
    out: proto
    opt: target=js+dts
+   include_imports: true

Request for add new option to support ignore import and do not generate its related code.

Is it a good idea do not generate its related code with option include_imports: false?

We don't need to generate code for import module in some cases:
https://github.com/tbonesoft/protoc-gen-go-gorm2/blob/v24.12/examples/bookstore/proto/bookstore/v1/bookstore.proto#L26

Originally posted by @kakuiho in #1018 (comment)

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

    FeatureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions