bufbuild / buf

The best way of working with Protocol Buffers.
https://buf.build
Apache License 2.0
9.22k stars 279 forks source link

Failure: read buf.gen.yaml: file does not exist #3442

Closed cruvie closed 3 weeks ago

cruvie commented 3 weeks ago

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!)

no

Commands

npm install @bufbuild/protobuf @bufbuild/protoc-gen-es @bufbuild/buf

cruvie@CruvieMacAir-4 kk_rbac_api % ls -l buf.gen.yaml 
-rw-r--r--@ 1 cruvie  staff  284 Nov  1 10:05 buf.gen.yaml
cruvie@CruvieMacAir-4 kk_rbac_api % npx buf generate
Failure: read buf.gen.yaml: file does not exist
cruvie@CruvieMacAir-4 kk_rbac_api %

Output

Failure: read buf.gen.yaml: file does not exist

Expected Output

generate ts file

Anything else?

# Learn more: https://buf.build/docs/configuration/v2/buf-gen-yaml
version: v2
inputs:
  - directory: ../../../kk_go_kit/kk_rbac/kk_rbac_api/kk_rbac_api_def
plugins:
  - local: protoc-gen-es
    opt: target=ts
    out: ../../../kk_go_kit/lib_ts/kk_rbac_api/models

#  npx buf generate
    "@bufbuild/buf": "^1.46.0",
    "@bufbuild/protobuf": "^2.2.1",
    "@bufbuild/protoc-gen-es": "^2.2.1",
bufdev commented 3 weeks ago

Thanks for your issue, however we cannot investigate it without a reproducible example - please review the instructions for more details. Per the policy stated above in the issue template, closing this issue until a reproducible example is provided.