diff options
author | James Judd <james@lab-y.com> | 2018-08-15 14:51:33 -0600 |
---|---|---|
committer | Jay Conrod <jayconrod@gmail.com> | 2018-08-15 16:51:33 -0400 |
commit | 1e88fb43c1b72ce0def6b6e5e56b148a77b062c5 (patch) | |
tree | aa0d2d209638a047d897ef4adb6d3674d2329450 /go/private/rules/binary.bzl | |
parent | ec70e2695e731a44a02e3ac4600bdd4e9f76b3f7 (diff) | |
download | bazelbuild-rules_go-1e88fb43c1b72ce0def6b6e5e56b148a77b062c5.tar.gz |
Remove uses of deprecated dictionary concatenation (#1663)
This removes the need for --incompatible_disallow_dict_plus
Diffstat (limited to 'go/private/rules/binary.bzl')
-rw-r--r-- | go/private/rules/binary.bzl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/go/private/rules/binary.bzl b/go/private/rules/binary.bzl index 46d5bb17..1d277b2b 100644 --- a/go/private/rules/binary.bzl +++ b/go/private/rules/binary.bzl @@ -95,7 +95,7 @@ def _go_binary_impl(ctx): go_binary = go_rule( _go_binary_impl, - attrs = { + attrs = dict({ "deps": attr.label_list( providers = [GoLibrary], aspects = [go_archive_aspect], @@ -145,7 +145,7 @@ go_binary = go_rule( values = GOARCH.keys() + ["auto"], default = "auto", ), - } + _SHARED_ATTRS, + }.items() + _SHARED_ATTRS.items()), executable = True, ) """See go/core.rst#go_binary for full documentation.""" @@ -153,11 +153,11 @@ go_binary = go_rule( go_tool_binary = go_rule( _go_binary_impl, bootstrap = True, - attrs = { + attrs = dict({ "deps": attr.label_list(providers = [GoLibrary]), "embed": attr.label_list(providers = [GoLibrary]), "_hostonly": attr.bool(default = True), - } + _SHARED_ATTRS, + }.items() + _SHARED_ATTRS.items()), executable = True, ) """ |