Giter Club home page Giter Club logo

Comments (13)

debkanchan avatar debkanchan commented on July 24, 2024

@srikrsna-buf @rodaine

from protovalidate-go.

debkanchan avatar debkanchan commented on July 24, 2024

@srikrsna-buf @rodaine any solutions?

from protovalidate-go.

debkanchan avatar debkanchan commented on July 24, 2024

@srikrsna-buf @rodaine still stuck on this

from protovalidate-go.

srikrsna-buf avatar srikrsna-buf commented on July 24, 2024

Hey! I am not sure if it is a problem with rules_buf, I don't see it used in the MODULE file. This could be problem of rules_go because bufbuild/protovalidate-go is a regular go module and doesn't have any bazel specific code.

from protovalidate-go.

debkanchan avatar debkanchan commented on July 24, 2024

@srikrsna-buf it's not a problem with rules_buf but rather protovalidate library

from protovalidate-go.

srikrsna-buf avatar srikrsna-buf commented on July 24, 2024

You can replicate the solution in #27 using go_deps.module. More on this in the rules_go docs: https://github.com/bazelbuild/rules_go/blob/master/docs/go/core/bzlmod.md#specifying-external-dependencies

from protovalidate-go.

srikrsna-buf avatar srikrsna-buf commented on July 24, 2024

Looks like they removed those options and moved it to a directive

from protovalidate-go.

debkanchan avatar debkanchan commented on July 24, 2024

even after doing that it throws the same error

from protovalidate-go.

srikrsna-buf avatar srikrsna-buf commented on July 24, 2024

Can you share the directives you've used?

from protovalidate-go.

andrewryno avatar andrewryno commented on July 24, 2024

I hit this as well and these directives seem to have worked (I'm hitting other issues on other packages like @io_etcd_go_etcd_api_v3) but I can now get past the errors relating to cel-go:

# gazelle:resolve go github.com/google/cel-go/cel @com_github_google_cel_go//cel:go_default_library
# gazelle:resolve go github.com/google/cel-go/checker/decls @com_github_google_cel_go//checker/decls:go_default_library
# gazelle:resolve go github.com/google/cel-go/common/types @com_github_google_cel_go//common/types:go_default_library
# gazelle:resolve go github.com/google/cel-go/interpreter @com_github_google_cel_go//interpreter:go_default_library

Those are the packages we're importing so change to whichever ones you are using.

from protovalidate-go.

debkanchan avatar debkanchan commented on July 24, 2024

Can you share the directives you've used?

# gazelle:prefix github.com/ride-app/driver-service
# gazelle:build_file_name BUILD.bazel
# gazelle:exclude infra
# gazelle:proto disable_global
# gazelle:go_naming_convention go_default_library

from protovalidate-go.

debkanchan avatar debkanchan commented on July 24, 2024

I hit this as well and these directives seem to have worked (I'm hitting other issues on other packages like @io_etcd_go_etcd_api_v3) but I can now get past the errors relating to cel-go:

# gazelle:resolve go github.com/google/cel-go/cel @com_github_google_cel_go//cel:go_default_library
# gazelle:resolve go github.com/google/cel-go/checker/decls @com_github_google_cel_go//checker/decls:go_default_library
# gazelle:resolve go github.com/google/cel-go/common/types @com_github_google_cel_go//common/types:go_default_library
# gazelle:resolve go github.com/google/cel-go/interpreter @com_github_google_cel_go//interpreter:go_default_library

Those are the packages we're importing so change to whichever ones you are using.

I tried your solution but still throws some errors. Would you mind sharing the whole gazelle setup in BUILD.bazel?

from protovalidate-go.

debkanchan avatar debkanchan commented on July 24, 2024

I hit this as well and these directives seem to have worked (I'm hitting other issues on other packages like @io_etcd_go_etcd_api_v3) but I can now get past the errors relating to cel-go:

# gazelle:resolve go github.com/google/cel-go/cel @com_github_google_cel_go//cel:go_default_library
# gazelle:resolve go github.com/google/cel-go/checker/decls @com_github_google_cel_go//checker/decls:go_default_library
# gazelle:resolve go github.com/google/cel-go/common/types @com_github_google_cel_go//common/types:go_default_library
# gazelle:resolve go github.com/google/cel-go/interpreter @com_github_google_cel_go//interpreter:go_default_library

Those are the packages we're importing so change to whichever ones you are using.

I tried your solution but still throws some errors. Would you mind sharing the whole gazelle setup in BUILD.bazel?

@andrewryno

from protovalidate-go.

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.