Skip to content

Commit

Permalink
Mention dev_dependency in go_sdk.host error
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum authored Jan 31, 2025
1 parent 7f6a9bf commit 8e1a160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/private/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def _go_sdk_impl(ctx):
# configure a specific version of the SDK to use. However, they should not add a
# dependency on the host's Go SDK.
if not module.is_root:
fail("go_sdk.host: cannot be used in non-root module " + module.name)
fail("go_sdk.host: cannot be used in non-root module {}, consider using use_extension(..., dev_dependency = True)".format(module.name))

name = host_tag.name or _default_go_sdk_name(
module = module,
Expand Down

0 comments on commit 8e1a160

Please sign in to comment.