diff options
author | Jay Conrod <jayconrod@gmail.com> | 2018-04-30 16:43:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-30 16:43:24 -0400 |
commit | 7b667debd92bf416c492f0f3ae42ad9429a35e5e (patch) | |
tree | f8414c6224f5e474a7f6d864ba09d654e32261fd /go/private/rules/binary.bzl | |
parent | 61a4c53a01b1a43327de5eece6be6b1976a1baae (diff) | |
download | bazelbuild-rules_go-7b667debd92bf416c492f0f3ae42ad9429a35e5e.tar.gz |
Removed deprecated features (#1475)
These features have been printing deprecation warnings for a while and
are scheduled for removal in 0.12.0.
* library attribute in go_library, go_binary, go_test.
* linkstamp attribute in go_binary, go_test.
* new_go_repository (but not rules_go go_repository yet).
* go_sdk and go_repositories.
* cgo_library and cgo_genrule
* go_proto_library.bzl
Fixes #1208, #812
Diffstat (limited to 'go/private/rules/binary.bzl')
-rw-r--r-- | go/private/rules/binary.bzl | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/go/private/rules/binary.bzl b/go/private/rules/binary.bzl index fa3b5357..e5d4f4c4 100644 --- a/go/private/rules/binary.bzl +++ b/go/private/rules/binary.bzl @@ -50,8 +50,6 @@ load( def _go_binary_impl(ctx): """go_binary_impl emits actions for compiling and linking a go executable.""" go = go_context(ctx) - if ctx.attr.linkstamp: - print("DEPRECATED: linkstamp, please use x_def for all stamping now {}".format(ctx.attr.linkstamp)) library = go.new_library(go, importable=False) source = go.library_to_source(go, ctx.attr, library, ctx.coverage_instrumented()) @@ -68,7 +66,6 @@ def _go_binary_impl(ctx): name = name, source = source, gc_linkopts = gc_linkopts(ctx), - linkstamp = ctx.attr.linkstamp, version_file = ctx.version_file, info_file = ctx.info_file, executable = executable, @@ -144,7 +141,6 @@ go_binary = go_rule( ), "gc_goopts": attr.string_list(), "gc_linkopts": attr.string_list(), - "linkstamp": attr.string(), "x_defs": attr.string_dict(), "linkmode": attr.string(values=LINKMODES, default=LINKMODE_NORMAL), "out": attr.string(), @@ -167,7 +163,6 @@ go_tool_binary = go_rule( "embed": attr.label_list(providers = [GoLibrary]), "gc_goopts": attr.string_list(), "gc_linkopts": attr.string_list(), - "linkstamp": attr.string(), "x_defs": attr.string_dict(), "linkmode": attr.string(values=LINKMODES, default=LINKMODE_NORMAL), "out": attr.string(), |