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_sdk
rule and is available to rules via theGoSDK
provider. - Standard library information is available to rules via the
GoStdLib
provider. 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_toolchains
will still declare an SDK if one is not already declared. go_wrap_sdk
is 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()