Rules Go Versions Save

Go rules for Bazel

v0.40.1

10 months ago

WORKSPACE code

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

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

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

go_rules_dependencies()

go_register_toolchains(version = "1.20.5")

Changes

This patch release cherry-picked two bug fixes related to Go package driver from master

v0.40.0

10 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.39.1...v0.40.0

WORKSPACE code

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

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

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

go_rules_dependencies()

go_register_toolchains(version = "1.20.5")

v0.39.1

1 year ago

What's Changed

  • Reland "Add new darwin CC toolchain for tests (#3460)" (#3502)
  • bzlmod: Remove build_file_proto_mode attribute (#3506)
  • go_register_toolchains: update sdk_kinds (#3511)
  • Ignore pre-compiled stdlib only on 1.19 with experiments (#3508)
  • bzlmod: Fix repo name used by gopackagesdriver (#3516)
  • Pass gc_goopts to stdlib (#3518)
  • Drop coverage linker flags from stdlib build (#3522)
  • Fix macOS CI after --remote_download_minimal flip (#3530)
  • Add defines for assembly build (#3528)
  • go_tool_binary: set GOMAXPROCS to 1 (#3536)

Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.39.0...v0.39.1

v0.39.0

1 year ago

WORKSPACE code

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

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

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

go_rules_dependencies()

go_register_toolchains(version = "1.20.2")

What's Changed

New Contributors

Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.38.0...v0.39.0

v0.38.1

1 year ago

Bug fixes

The go_googleapis upgrade in 0.38.0 is too disruptive. It changes the Go import paths of the proto packages, causing build failures in repos trying to upgrade to rules_go 0.38.0. Reverting the go_googleapis to the master of 2022-12-05 (#3432) for now to make rules_go upgrades easier.

WORKSPACE code

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

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

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

go_rules_dependencies()

go_register_toolchains(version = "1.19.5")

Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.38.0...v0.38.1

v0.38.0

1 year 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

New Contributors

Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.37.0...v0.38.0

v0.37.0

1 year ago

Major New Features

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

What's Changed

New Contributors

Full Changelog: https://github.com/bazelbuild/rules_go/compare/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")

v0.36.0

1 year ago

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

New Contributors

Full Changelog: https://github.com/bazelbuild/rules_go/compare/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")

v0.35.0

1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.34.0...v0.35.0

WORKSPACE code

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

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

v0.34.0

1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.33.0...v0.34.0

WORKSPACE code

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

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

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

go_rules_dependencies()

go_register_toolchains(version = "1.18.4")