github bazelbuild/rules_go 0.5.3

latest releases: v0.46.0, v0.45.1, v0.45.0...
pre-release6 years ago

Go Rules

  • go_library supports cgo when the cgo = 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 a rundir 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 and fix commands. update is the normal, default behavior. fix will revise existing build files with deprecated rules like cgo_library. We plan to add more commands with different flags in the future.
  • Rewrote the Gazelle documentation.
  • Lots of bug fixes and refactoring.

Don't miss a new rules_go release

NewReleases is sending notifications on new releases.