Go Rules
go_library
supports cgo when thecgo = True
argument is given.cgo_library
is no longer needed and is now deprecated.- Race detection is supported. You can use it in tests with
bazel test --features=race //...
. go_embed_data
(a new rule) lets you embed data files in generated Go code.go_test
accepts arundir
attribute that lets you specify where the test should run. Test binaries will no longer attempt to change directories when run outside of Bazel.- Lots of bug fixes and refactoring.
Gazelle
- Gazelle now accepts the
update
andfix
commands.update
is the normal, default behavior.fix
will revise existing build files with deprecated rules likecgo_library
. We plan to add more commands with different flags in the future. - Rewrote the Gazelle documentation.
- Lots of bug fixes and refactoring.