github bazel-contrib/rules_go v0.30.0

latest releases: v0.50.1, v0.50.0, v0.49.0...
2 years ago

Changes

  • Add first class support for GOOS=ios (#3013)

  • Always include debug symbols with -c dbg (#3029)

    Previously, debugging a go_test target was only possible with an explicit --@io_bazel_rules_go//go/config:debug.

  • go_test: Add env attribute (#3004)

    This allows setting environment variables before static initialisers run, and which reference expanded locations.

  • tests/core/cgo: do not assume test is being run from main repo (#2956)

  • reproducibility_test: explicitly build the go_sdk builder (#3026)

  • map bazel's --test_runner_fail_fast to go's -failfast (#3058)

Bug Fixes

  • Emit correct header in CGo c-archive (#2874)
  • Append path into trimpath if option already exists (#2994)
  • Fixed issue with go_bazel_test rule on Windows (#3036)
  • Skipping linker flag for versioned dylib on Darwin (#2989)
  • Trim absolute paths in files generated by cgo (#3011)
  • builders/cover: register coverage without changing line numbers (#2993)
  • cover: use Z instead of underscore for variable name separator (#2995)
  • .bazelci/presubmit.yml: remove old flag (#3023)
  • builders/gentestmain: register correct cover mode in the coverage report file when enabling race mode (#3019)
  • -fsanitize-ignorelist should have an absolute path (#3001)
  • internal changes: #2942, #2987, #2988, #2992, #3000, #3035, #3038, #3046

Thanks to all of the contributors

Compatibility

  • Bazel 4.2.1 or higher is now required. The previous minimum version
    was 4.2.0.

Updated dependencies

As always, you can use higher versions of rules_go's dependencies by declaring
them in WORKSPACE before calling go_rules_dependencies. Lower versions may
work but are not supported.

  • org_golang_x_tools updated to v0.1.8 (#3031)
  • org_golang_x_sys updated to master as of 2022-01-24.
  • org_golang_google_genproto updated to master as of 2022-01-24.
  • go_googleapis updated to master as of 2022-01-24.

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "io_bazel_rules_go",
    sha256 = "d6b2513456fe2229811da7eb67a444be7785f5323c6708b38d851d2b51e54d83",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.30.0/rules_go-v0.30.0.zip",
        "https://github.com/bazelbuild/rules_go/releases/download/v0.30.0/rules_go-v0.30.0.zip",
    ],
)

load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

go_rules_dependencies()

go_register_toolchains(version = "1.17.6")

Don't miss a new rules_go release

NewReleases is sending notifications on new releases.