Giter Club home page Giter Club logo

Comments (5)

k1LoW avatar k1LoW commented on June 12, 2024 1

Hi @mztnnrt. Thank you for your report.

Currently, runn does not support the special behavior of buf.

Therefore import "buf/validate/validate.proto"; is treated the same as import "shared/shared.proto";

In other words, the solution is to create a buf/validate directory in the import path and put validate.proto flie there.

(I also use buf, so if this problem can be solved, it is an issue I would like to solve.)

from runn.

mztnnrt avatar mztnnrt commented on June 12, 2024 1

@k1LoW

Thanks for your reply ! we are helpful and glad to know the current status. 🙏
as you say, we noticed that there is the solution that import from local.

Already we tried based on your comment, it's work runn testing using validate.proto.

Thanks for your advice and reply, you can closed this issue anytime.


Note

maybe it's a little different from the issue in runn, but I'll write the solution about above.
we hope it helps someone.

approach we did

Step 1.

Remove deps buf.build/bufbuild/protovalidate from buf.yaml and run $ buf mod update

Step 2.

Pulling validate.proto etc, using buf export command.

dir_located_buf_yaml = ./proto
buf export buf.build/bufbuild/protovalidate --path buf/validate --output $dir_located_buf_yaml

Step 3.

Add import "buf/validate/validate.proto"; into proto file.

Step 4.

runn run ./e2e/backend/grpc.yaml --grpc-no-tls --grpc-import-path ./proto --grpc-proto ./proto/pingpb/service.proto
1 scenario, 0 skipped, 0 failures

buf generate, runn test, validate message work correctly our environment, thanks.

from runn.

k1LoW avatar k1LoW commented on June 12, 2024 1

@mztnnrt
Hi.
We now support the Buf Schema Registry in v0.105.1.
You can use --grpc-buf-lock path/to/buf.lock to resolve buf/validate/validate.proto.

from runn.

mztnnrt avatar mztnnrt commented on June 12, 2024 1

Hi @k1LoW

Amazing ! We appreciate for your work !

Currently we tried --grpc-buf-lock flag, and working correctly 🙌
Thanks for it, we could remove the validate.proto which is pulled by manually, and we no longer need to manage.

Thanks so much ! 🙏

from runn.

k1LoW avatar k1LoW commented on June 12, 2024

Hi @mztnnrt.

Since V0.106.0, in many cases this can be resolved by simply specifying --grpc-buf-dir.

runn run ./e2e/backend/grpc.yaml --grpc-no-tls --grpc-buf-dir ./proto

Try it out 👍

from runn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.