Skip to content

Commit

Permalink
Make gofmt available via sdk.tools (#1845)
Browse files Browse the repository at this point in the history
  • Loading branch information
vam-google authored and jayconrod committed Jan 3, 2019
1 parent 6b00fe4 commit b463dbf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go/private/BUILD.sdk.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ filegroup(

filegroup(
name = "tools",
srcs = glob(["pkg/tool/**"]),
srcs = glob(["pkg/tool/**", "bin/gofmt*"])
)

go_sdk(
Expand Down
4 changes: 2 additions & 2 deletions go/private/providers.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ GoSDK = provider(
"may not be included."),
"package_list": ("A file containing a list of importable packages " +
"in the standard library."),
"tools": ("List of executable files from pkg/tool " +
"built for the execution platform."),
"tools": ("List of executable files in the SDK built for " +
"the execution platform, excluding the go binary file"),
"go": "The go binary file",
},
)
Expand Down
4 changes: 2 additions & 2 deletions go/private/rules/sdk.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ go_sdk = rule(
"tools": attr.label_list(
allow_files = True,
cfg = "host",
doc = ("List of executable files from pkg/tool " +
"built for the execution platform"),
doc = ("List of executable files in the SDK built for " +
"the execution platform, excluding the go binary"),
),
"go": attr.label(
mandatory = True,
Expand Down

0 comments on commit b463dbf

Please sign in to comment.