Skip to content

Commit

Permalink
Changing hard fail to soft when version is provided for module but su…
Browse files Browse the repository at this point in the history
…m doesn't exist
  • Loading branch information
Buzz-Lightyear authored and Buzz-Lightyear committed Aug 9, 2024
1 parent 9d8884a commit 2226c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/go_repository.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def _go_repository_impl(ctx):
if getattr(ctx.attr, key):
fail("cannot specify both version and %s" % key)
if ctx.attr.version and not ctx.attr.sum:
fail("if version is specified, sum must also be")
print("No sum for {}@{} found, run bazel run @rules_go//go -- mod tidy to generate it".format(ctx.attr.importpath, ctx.attr.version))

fetch_path = ctx.attr.replace if ctx.attr.replace else ctx.attr.importpath
fetch_repo_args = [
Expand Down

0 comments on commit 2226c6b

Please sign in to comment.