rivo / uniseg

Unicode Text Segmentation, Word Wrapping, and String Width Calculation in Go
MIT License
570 stars 60 forks source link

Building with bazel #44

Closed bradcater closed 6 months ago

bradcater commented 8 months ago

Have you used uniseg in a bazel project? I'm not able to import it due to there not being a BUILD.bazel file.

rivo commented 8 months ago

No, uniseg is not configured for Bazel. If you need such configuration files, you'll have to add them yourself.

bradcater commented 8 months ago

@rivo Ack. Here's a PR: https://github.com/rivo/uniseg/pull/45

stevebarrau commented 8 months ago

You could use https://github.com/bazelbuild/bazel-gazelle to pull this in. You will need the following extra configuration for the go_repository:

build_directives = [
    "gazelle:exclude gen_properties.go",
    "gazelle:exclude gen_breaktest.go",
],