Skip to content

[Feature Request] bzlmod instructions #93

@atriviality

Description

@atriviality

Feature description:

Update usage instructions to include bzlmod directives

Problem it solves or use case:

Makes it easier for downstream users to incorporate the library.

Proposed implementation or solution:

Add a bzlmod section to the README (under Installation); include information for MODULE.bazel and BUILD.bazel (see snippets below).

# MODULE.bazel
 bazel_dep(name = "cel-cpp", repo_name = "com_google_cel_cpp", version="0.11.0")
 bazel_dep(name = "protovalidate-cc", version = "0.6.0")
 
 git_override(
   module_name = "cel-cpp",
   remote = "https://github.com/google/cel-cpp.git",
   commit = "<commit hash>"
 )
 
 git_override(
   module_name = "protovalidate-cc",
   remote = "https://github.com/bufbuild/protovalidate-cc.git",
   commit = "<commit hash>"
 )
# BUILD.bazel

cc_binary(
   ...
   deps = [ ..., "@protovalidate-cc//buf/validate:validator", ...]
   ...
)

Contribution:

I can make a PR if that helps expedite this.

Metadata

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