Skip to content

v0.36.0

Compare
Choose a tag to compare
@linzhp linzhp released this 23 Nov 17:10
83d85a8

Major new features

  • The Go runfiles library developed by @phst at https://github.com/phst/runfiles is now available as github.com/bazelbuild/rules_go/go/runfiles (target @io_bazel_rules_go//go/runfiles) and is now the official way to look up runfiles from Go. It will be made compatible with Bzlmod in a future release.
    Note: For improved consistency with runfiles libraries in other languages, the Path function present in https://github.com/phst/runfiles is called Rlocation in rules_go.
  • Adding two new command line flags --@io_bazel_rules_go//go/config:gc_goopts and --@io_bazel_rules_go//go/config:gc_linkopts to accept additional compiler and linker flags.

What's Changed

  • bzlmod: Use register_toolchains by @fmeum in #3290
  • Remove unused env_execute by @kmicklas in #3276
  • Correctly forward InstrumentedFilesInfo from dependencies by @fmeum in #3294
  • Parse Go SDK version out of go version instead of VERSION by @fmeum in #3296
  • also write test stderr to json (xml) output file by @rickystewart in #3300
  • Bzlmod: Pin Bazel version in CI by @fmeum in #3301
  • Allow to select Go SDK version from declared SDKs by @ash2k in #3303
  • Use top level VERSION file when it exists by @linzhp in #3309
  • synchronize when writing to the JSON converter by @rickystewart in #3311
  • update version manifest URL by @benjaminp in #3314
  • Symlink "misc" into repository for local_sdk. by @adam-azarchs in #3313
  • Ensure compatibility with incompatible flags close to flipping by @fmeum in #3319
  • Add additional bzlmod requirements to allow grpc protobufs to work by @shs96c in #3320
  • bzlmod: Update pinned Bazel version by @fmeum in #3321
  • bzlmod: Set up automated BCR releases by @fmeum in #3324
  • bzlmod: Add support for gogo proto compiler by @fmeum in #3323
  • gopackagesdriver: move non-Go files to OtherFiles (Fixes #3326) by @michaelarusso in #3327
  • bzlmod: Allow yanked versions in CI by @fmeum in #3329
  • feat(pkg-drv): allow setting custom aspect and kinds by @JamyDev in #3328
  • fix(packages-driver): allow defining additional aspects instead by @JamyDev in #3330
  • Add support for parsing Go development versions by @zakcutner in #3333
  • Match GOARCH ppc64 to @platforms//cpu:ppc as well. by @mahiuchun in #3336
  • bzlmod: Update Publish to BCR app config by @fmeum in #3337
  • gopackagesdriver: default to NotHandled:true for package queries by @ian-h-chamberlain in #3338
  • fix(packagesdrv): resolve third party go packages by @JamyDev in #3332
  • runfiles: port phst/runfiles to rules_go by @sluongng in #3205
  • Adding gc_linopts to command line flag by @linzhp in #3342
  • Move new runfiles library to //go/runfiles by @fmeum in #3341
  • Rename Path to Rlocation in runfiles library by @fmeum in #3346
  • Add 'gc_goopts' flag to command line to allow gc_goopts to propagate by @LWarrens in #3340

New Contributors

Full Changelog: v0.35.0...v0.36.0

WORKSPACE code

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

http_archive(
    name = "io_bazel_rules_go",
    sha256 = "ae013bf35bd23234d1dea46b079f1e05ba74ac0321423830119d3e787ec73483",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.36.0/rules_go-v0.36.0.zip",
        "https://github.com/bazelbuild/rules_go/releases/download/v0.36.0/rules_go-v0.36.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")