Comments (13)
from protovalidate-go.
@srikrsna-buf @rodaine any solutions?
from protovalidate-go.
@srikrsna-buf @rodaine still stuck on this
from protovalidate-go.
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.
@srikrsna-buf it's not a problem with rules_buf
but rather protovalidate library
from protovalidate-go.
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.
Looks like they removed those options and moved it to a directive
from protovalidate-go.
even after doing that it throws the same error
from protovalidate-go.
Can you share the directives you've used?
from protovalidate-go.
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.
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.
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 tocel-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.
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 tocel-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.
Related Issues (20)
- gen proto issue HOT 1
- The validate returns an error object. How do I get the correct field name and the corresponding check message HOT 2
- [BUG] Non-deterministic error values when using `string.uuid` HOT 4
- [BUG] Some red wavy line about importing when VSCode/Goland displaying generated code HOT 3
- Vulnerability GO-2024-2609 HOT 1
- [BUG] resolveDeprecatedIndex() isn't functioning. HOT 3
- field mask validation at message level is not working HOT 1
- [BUG] Enum-related validation error messages contain numbers instead of value names HOT 1
- Un-typedef errors.ValidationError to buf.validate.Violations
- StandardConstraintResolver interface needs to return errors
- [BUG] undefined: atomic.Pointer v0.3.3 HOT 1
- Part of the validation code is not generated HOT 2
- [Question] How to use protovalidate-go in github-actions HOT 2
- Document recommendation for instantiating/managing validator instances HOT 2
- [Feature Request] Allow extending default cel.Env created by protovalidate.New HOT 4
- Fails to validate a simple message HOT 2
- [BUG] error evaluating repeated.unique: internal error: runtime error: invalid memory address or nil pointer dereference HOT 1
- [Question] What's the correct way to write cel expressions for validating a single item in a repeated field? HOT 1
- [BUG] *.pb.validate.go Validate AND ValidateAll cannot use. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protovalidate-go.