github bazel-contrib/rules_go v0.38.0

latest releases: v0.50.1, v0.50.0, v0.49.0...
21 months ago

Breaking changes

Starting this release, rules_go requires Bazel 5.3 and golang/x/tools at least 0.3.0. If you are using stardoc, you also need to upgrade it to 0.5.3 to recognize RunEnvironmentInfo, which is used in this release.

Major new features

This is the first release to support Go 1.20. When on this version of Go, it is highly recommended to use Bazel 6 and set --experimental_output_directory_naming_scheme=diff_against_baseline to prevent certain unnecessary rebuilds.

What's Changed

  • preserve intermediate files if -work is specified by @motiejus in #3389
  • Adapt lcov_coverage_test to exec.Command change by @fmeum in #3392
  • explicitly build relative path for Tool command in lcov_coverage_test by @matloob in #3399
  • Add support for building with boringcrypto by @matloob in #3398
  • Generalize boringcrypto to GOEXPERIMENT support by @fmeum in #3401
  • Replace cfg = "host" with cfg = "exec" by @fmeum in #3404
  • always produce .a files at the beginning of a build by @matloob in #3385
  • Mark nogo targets as manual to keep top-level symlinks by @fmeum in #3410
  • Refactoring the extld related logic by @linzhp in #3400
  • Fix incompatible flags not applied to integration tests by @fmeum in #3415
  • chore: remove experimental warning from bzlmod module by @alexeagle in #3418
  • Add a clarifying error about dependency cycle found for internal tests by @yushan26 in #3422
  • Do not use exec paths for rundir by @fmeum in #3414
  • Upgrade org_golang_x_tools to 0.5.0 by @linzhp in #3356
  • fix: Relative path of embedsrc by @bakjos in #3407
  • Add support for env_inherit by @ttpathan in #3256
  • Update stardoc to 0.5.3 by @fmeum in #3427
  • Add env attribute to go_binary by @fmeum in #3428

New Contributors

Full Changelog: v0.37.0...v0.38.0

Don't miss a new rules_go release

NewReleases is sending notifications on new releases.