Skip to content

Commit

Permalink
Replace Label(...).workspace_name with explicit repo name
Browse files Browse the repository at this point in the history
With the repository mappings used by bzlmod, the
Label(...).workspace_name construct always returns the canonical,
post-repo mapping repo name, which can't be used to construct a valid
label. Until bazelbuild/bazel#15593 has been
fixed, we have to hardcode the non-canonical repo name here.
  • Loading branch information
fmeum committed Jun 8, 2022
1 parent e819d11 commit 7937ab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/private/sdk.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def _sdk_build_file(ctx, platform):
"{goos}": goos,
"{goarch}": goarch,
"{exe}": ".exe" if goos == "windows" else "",
"{rules_go_repo_name}": Label("//go/private:BUILD.sdk.bazel").workspace_name,
"{rules_go_repo_name}": "io_bazel_rules_go",
},
)

Expand Down

0 comments on commit 7937ab5

Please sign in to comment.