bazel-contrib/rules_go
View on GitHub ↗ ★ 1,490 Go
Go rules for Bazel
16 mentions on Hacker News by 16 people: 0 stories, 16 comments · first 2017-07-21 · latest 2025-12-14
20082026
-
…to auto-generate Bazel rules across many modules - I think the most up to date usage guide is https://github.com/bazel-contrib/rules_go/blob/master/docs/g... . * In addition, you can make your life a lot easier by just making the whole…
comment by GeneralMayhem · 2025-12-14 · in Why Twilio Segment moved from microservices back to a monolith -
…think otherwise?? edit: ok so bazel folks are just on a completely alternative timeline it seems https://github.com/bazel-contrib/rules_go?tab=readme-ov-file... Bazel ignores go.mod files, and all package dependencies must be expressed…
comment by kiitos · 2025-10-09 · in Build files are the best tool to represent software architecture -
…"gopackagesdriver" protocol, but even then I don't think anyone but Bazel has integrated with it: https://github.com/bazel-contrib/rules_go/wiki/Editor-and-to...
comment by cormacrelf · 2025-05-28 · in The Ingredients of a Productive Monorepo -
…wrong, sorry. > This means that any of those comments will also get ignored I cloned this example: https://github.com/bazelbuild/rules_go/tree/634fc283f8d84ea6... And then ran "go get github.com/xthexder/go-jack" and added an 'import _…
comment by TheDong · 2024-07-03 · in Reproducibility in Disguise -
…arguments that the C++ build targets (the protobuf ones, using the built in C++ rules) declare. See https://github.com/bazelbuild/rules_go/issues/1486 Not very confidence inspiring when Google’s build system falls over when you combine…
comment by cstrahan · 2022-09-13 · in When to use Bazel? -
…go toolchain but it’s using parts of it. And yes as of recently it decently integrates with gopls https://github.com/bazelbuild/rules_go/wiki/Editor-setup
comment by dilyevsky · 2022-06-26 · in We Halved Go Monorepo CI Build Time -
…is the search term). Nobody touched this bug for a couple years, so I gave up. Here's the bug: https://github.com/bazelbuild/rules_go/issues/512 I basically wouldn't use Bazel with Go. Go already has a build system, Bazel is best for…
comment by jrockway · 2022-05-18 · in Calculating Go type sets is harder than you think -
…ub.com/grpc/grpc-java/blob/master/java_grpc_libr... - Go (different semantics than all of the other): https://github.com/bazelbuild/rules_go/blob/master/proto/def... But there's also no real cohesion within the community. The biggest…
comment by gravypod · 2021-12-09 · in Buf raises $93M to deprecate REST/JSON -
…can use rules_go's builtin go_embed_data [1] rule instead of rolling out your own using genrule. 1. https://github.com/bazelbuild/rules_go/blob/master/go/extras...
comment by steeve · 2020-08-11 · in Golang Desktop App with Webview/Lorca, WASM and Bazel -
…without using a Docker daemon. It also has its own freestanding pusher. Rulesets like rules_go ( https://github.com/bazelbuild/rules_go ) also support pretty decent cross compilation, meaning that you can, for example, build Linux…
comment by EdSchouten · 2020-01-26 · in Building Containers Without Docker -
…expose generated types like your gRPC and Protobuf classes. You can follow this issue for updates: https://github.com/bazelbuild/rules_go/issues/512
comment by rohansingh · 2020-01-16 · in Autocomplete as an Interface (2015) -
…while avoiding the well-known pitfalls of Makefiles (config complexity, reproducibility, etc.) [1] https://github.com/bazelbuild/rules_go [2] https://github.com/bazelbuild/bazel-gazelle
comment by alexhutcheson · 2019-12-10 · in Using Makefile(s) for Go -
…think this is temporary. As an example, Bazel and Go should play well together in the near future: https://github.com/bazelbuild/rules_go/issues/512 Hopefully, other languages will make mechanisms for code intelligence to integrate with…
comment by jchw · 2019-07-09 · in The Art of Metaprogramming (2005) -
…Blaze which I assume is very close to the open-source version, Bazel. Here's how Go works in Bazel: https://github.com/bazelbuild/rules_go
comment by iainmerrick · 2017-09-20 · in Golang: Don't be afraid of makefiles -
There are some released bazel rules for Go: https://github.com/bazelbuild/rules_go
comment by zlalanne · 2017-09-20 · in Golang: Don't be afraid of makefiles -
it's getting there... see the Travis CI config for getting bazel for this repo specifically, or, https://github.com/bazelbuild/rules_go has go-specific instructions
comment by kevinburke · 2017-07-21 · in Pure Go implementation of the NaCL set of APIs