Releases: bazel-contrib/rules_go
Releases · bazel-contrib/rules_go
0.13.2
New Go versions
- Go 1.11.1 is now supported.
Bug fixes
- #1721 - Fix non-root package testing on Windows (thanks @filipesilva!)
- #1724 - Add more explicit dependencies for bazel_test
- #1727 - link: take absolute path of main file
- #1731 - Do not depend on stdlib for CGo codegen anymore (thanks @steeve!)
- #1732 - Add fake buildid when linking (thanks @steeve!)
WORKSPACE code
To use this release, add this code to your WORKSPACE file:
http_archive(
name = "io_bazel_rules_go",
url = "https://github.com/bazelbuild/rules_go/releases/download/0.13.2/rules_go-0.13.2.tar.gz",
sha256 = "6cbeb2e5fd7664073d96e91eef7d201b987817a2459702ac5f9a337285817597",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
0.15.3
Bug fixes
- #1686 - Filter out -lstdc++ for targets with no C++ code
- #1684 - third_party/org_golang_google_grpc: fix android build
WORKSPACE code
To use this release, add this code to your WORKSPACE file:
http_archive(
name = "io_bazel_rules_go",
url = "https://github.com/bazelbuild/rules_go/releases/download/0.15.3/rules_go-0.15.3.tar.gz",
sha256 = "97cf62bdef33519412167fd1e4b0810a318a7c234f5f8dc4f53e2da86241c492",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
0.15.2
Bug fixes
- #1696 - go/private: only enable -shared/-dynlink on selected platforms
- #1595 - cgo: declare rules for each supported mode, select in aspect
WORKSPACE code
To use this release, add this code to your WORKSPACE file:
http_archive(
name = "io_bazel_rules_go",
url = "https://github.com/bazelbuild/rules_go/releases/download/0.15.2/rules_go-0.15.2.tar.gz",
sha256 = "70d0204f1e834d14fa9eef1e9b97160917a48957cd1e3a39b5ef9acdbdde6972",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
0.15.1
Go support
Added support for Go 1.11 and 1.10.14.
Bug fixes
- #1688 - Build tags are space separated, not comma separated.
WORKSPACE code
To use this release, add this code to your WORKSPACE file:
http_archive(
name = "io_bazel_rules_go",
url = "https://github.com/bazelbuild/rules_go/releases/download/0.15.1/rules_go-0.15.1.tar.gz",
sha256 = "5f3b0304cdf0c505ec9e5b3c4fc4a87b5ca21b13d8ecc780c97df3d1809b9ce6",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
0.14.1
Go support
Added support for Go 1.11 and 1.10.14.
Bug fixes
- #1688 - Build tags are space separated, not comma separated.
WORKSPACE code
To use this release, add this code to your WORKSPACE file:
http_archive(
name = "io_bazel_rules_go",
url = "https://github.com/bazelbuild/rules_go/releases/download/0.14.1/rules_go-0.14.1.tar.gz",
sha256 = "ee0e3b346388c447f13009d789c8bf2d7bae4643ac70bd7997ded0ad09b2fff7",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
0.13.1
Go support
Added support for Go 1.11 and 1.10.14.
Bug fixes
- #1594 - Misc fixes for Windows
- #1632 - Propagate mode aspect on "_coverdata" edges
- #1688 - Build tags are space separated, not comma separated.
WORKSPACE code
To use this release, add this code to your WORKSPACE file:
http_archive(
name = "io_bazel_rules_go",
url = "https://github.com/bazelbuild/rules_go/releases/download/0.13.1/rules_go-0.13.1.tar.gz",
sha256 = "96e50aca9efb652db6271ba9cacf21f8f1fb29b2eab57ebaacdc071a022d1ad2",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
0.15.0
Changes
- Several internal changes and fixes have been made to the way we handle paths passed to the compiler and linker. These changes shouldn't affect most projects, but large builds on macOS and Windows should see fewer errors about long paths and command lines.
- Gazelle and its dependencies have been removed from
go_rules_dependencies(). If you use Gazelle, you should load it fromgithub.com/bazelbuild/bazel-gazelleinstead. - The minimum supported Bazel version is now 0.16.0.
Updated dependencies
- The following repositories are no longer declared in
go_rules_dependencies.bazel_gazelle(github.com/bazelbuild/bazel-gazelle)com_github_bazelbuild_buildtools(github.com/bazelbuild/buildtools)com_github_pelletier_go_toml(github.com/pelletier/go-toml)
org_golang_x_sys(golang.org/x/sys) has been added togo_rules_dependencies, since it's now a dependency oforg_golang_google_grpc(google.golang.org/grpc).org_golang_google_genproto(google.golang.org/genproto) updated tomasteras of 2018-08-13.go_googleapis(github.com/googleapis/googleapis) updated tomasteras of 2018-08-08.
WORKSPACE code
To use this release, add this code to your WORKSPACE file:
http_archive(
name = "io_bazel_rules_go",
url = "https://github.com/bazelbuild/rules_go/releases/download/0.15.0/rules_go-0.15.0.tar.gz",
sha256 = "56d946edecb9879aed8dff411eb7a901f687e242da4fa95c81ca08938dd23bb4",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
0.14.0
Changes
- The standard library no longer needs to be compiled in the default target mode. We now use the precompiled archives in the SDK. This should speed up clean builds for most developers. The standard library may still be compiled for non-default modes (e.g., cross compilation,
pure,race,msan, etc.). - SDK information is now collected by the
go_sdkrule and is available to rules via theGoSDKprovider. - Standard library information is available to rules via the
GoStdLibprovider. Note that the standard library may or may not be in the same directory as the SDK. - SDK toolchains are now registered by the SDK functions,
go_download_sdk,go_host_sdk,go_local_sdk, andgo_wrap_sdk. This will allow multiple SDKs to be declared in the future, which may be necessary when multiple remote execution platforms are supported.go_register_toolchainswill still declare an SDK if one is not already declared. go_wrap_sdkis a new repository rule which allows you to configure an SDK downloaded or located with a different repository rule (for example, one that uses your OS package manager).
Updated dependencies
com_google_protobuf(github.com/google/protobuf) updated to v3.6.1.com_github_gogo_protobuf(github.com/gogo/protobuf) updated to v1.1.1.org_golang_x_net(golang.org/x/net) updated to master.org_golang_x_tools(golang.org/x/tools) updated to master.org_golang_google_grpc(google.golang.org/grpc) updated to v1.14.0.org_golang_google_genproto(google.golang.org/genproto) updated to master.go_googleapis(github.com/googleapis/googleapis) updated to master.com_github_kevinburke_go_bindata(github.com/kevinburke/go-bindata) updated to v3.11.0.
WORKSPACE code
To use this release, add this code to your WORKSPACE file:
http_archive(
name = "io_bazel_rules_go",
url = "https://github.com/bazelbuild/rules_go/releases/download/0.14.0/rules_go-0.14.0.tar.gz",
sha256 = "5756a4ad75b3703eb68249d50e23f5d64eaf1593e886b9aa931aa6e938c4e301",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
0.13.0
New features
- A new repository,
@go_googleapis, is declared ingo_rules_dependencies(). This downloadsgithub.com/googleapis/googleapisand includesproto_libraryandgo_proto_libraryrules for everything inside.- Note that
go_proto_libraryrules for the Well Known Types are still found in@io_bazel_rules_go//proto/wkt. go_libraryrules using pre-generated .pb.go files may be found in@com_github_golang_protobufand@org_golang_google_genproto. These should be used if you want to avoid a build-time dependency on protoc.- Gazelle 0.13.0 will resolve dependencies for these from both .go and .proto files depending on the proto mode.
- Note that
- Support for Go 1.10.3 and 1.9.7.
go_binarycan now build plugins withlinkmode = "plugin"(thanks @teh-cmc)- Several fixes for Windows compatibility (thanks @pmuetschard)
- Several fixes for reproducibility (thanks @siddharthab, @bennyscetbun, @steeve)
- Fixes for platform compatibility (thanks @lubinszARM, @likan999, @siddharthab, @rescrv)
go_testnow acceptsgoosandgoarchattributes (thanks @kerinin).- The compiler writes go_asm.h when .s files are present.
go_pathcan now bundle compiled .a files in pkg directories for its transitive dependencies (thanks @steeve!).- Code generated in
c-archivemode is position independent (thanks @siddharthab). raceandmsantags are enabled in those modes.importmapmay now be inherited from embedded libraries.- .s files may include other .s files.
restricted_toandcompatible_withare now propagated in cgo rules (thanks @iley)
Notes
- Removed deprecated features
- Removed support for Go 1.8.
- Removed
go_prefix.importpathis now required on libraries.gazelle fixcan help you migrate. - Removed the definition of
go_repositoryin rules_go. Use the one in@bazel_gazelle//:deps.bzlinstead.gazelle fixcan help you migrate.
Updated dependencies
com_google_protobuf(github.com/google/protobuf) updated to v3.6.0.1.org_golang_google_grpc(google.golang.org/grpc) updated to v1.13.0.org_golang_google_genproto(google.golang.org/genproto) updated to master.org_golang_x_net(golang.org/x/net) updated to master.
WORKSPACE code
To use this release, add this code to your WORKSPACE file:
http_archive(
name = "io_bazel_rules_go",
url = "https://github.com/bazelbuild/rules_go/releases/download/0.13.0/rules_go-0.13.0.tar.gz",
sha256 = "ba79c532ac400cefd1859cbc8a9829346aa69e3b99482cd5a54432092cbc3933",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
0.12.1
Go support
Added support for Go 1.10.3 and 1.9.7.
Bug fixes
- #1524 - Add extra_files attribute to bazel_test
- #1542 - Fix deprecated skylark
- #1541 - Inherit importmap from embedded libraries
- #1526 - fix ios cross compilation with cgo
- #1521 - Allow .s files to include other .s files
- #1510 - Change base URL that SDKs are downloaded from
- #1497 - Enable use of FreeBSD SDK
- #1493 - Propagate restricted_to and compatible_with attributes in cgo rules
WORKSPACE code
To use this release, add this code to your WORKSPACE file:
http_archive(
name = "io_bazel_rules_go",
url = "https://github.com/bazelbuild/rules_go/releases/download/0.12.1/rules_go-0.12.1.tar.gz",
sha256 = "8b68d0630d63d95dacc0016c3bb4b76154fe34fca93efd65d1c366de3fcb4294",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()