github bazel-contrib/rules_go v0.37.0

latest releases: v0.51.0-rc1, v0.50.1, v0.50.0...
24 months ago

Major New Features

  • Support fetching packages for generated code in the Go Packages Driver

What's Changed

  • bzlmod: Add missing strip_prefix field to source.template.json by @fmeum in #3359
  • Declare toolchains in a separate repository by @jfirebaugh in #3348
  • Delete legacy actions API by @fmeum in #3173
  • go_path: support go:embed of generated files by @S-Chan in #3285
  • Properly deprecate bindata, go_embed_data, and go_embed_data_deps by @fmeum in #3362
  • link.bzl: ignore duplicate dep on coverdata by @robfig in #3032
  • feat(pkg-drv): add support for generated files by @JamyDev in #3354
  • Remove unused variables in link action by @fmeum in #3367
  • Reduce number of declared files in emit_stdlib by @fmeum in #3366
  • Update docs regarding vendored proto files by @garymm in #3360
  • go link: use external linker when in race mode by @motiejus in #3370
  • Adding first example by @chrislovecnm in #3317
  • fix(packagesdriver): bazelFlags should prefix the command by @JamyDev in #3371
  • chore(gpd): export aspect utils for reusability by @JamyDev in #3373
  • nogo: Add a _base key to be a default config for all Analyzers. by @DolceTriade in #3351
  • Document that Rlocation can return relative paths by @fmeum in #3377
  • Fix normalization check for Rlocation path by @fmeum in #3378
  • fix(gpd): Write large target patterns to file by @JamyDev in #3372
  • Make Go runfiles library repo mapping aware by @fmeum in #3347

New Contributors

Full Changelog: v0.36.0...v0.37.0

WORKSPACE code

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

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

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

go_rules_dependencies()

go_register_toolchains(version = "1.19.3")

Don't miss a new rules_go release

NewReleases is sending notifications on new releases.