Skip to content

Commit

Permalink
Revert "use glob instead"
Browse files Browse the repository at this point in the history
This reverts commit 4b0181a.
  • Loading branch information
sluongng committed Aug 17, 2023
1 parent 4b0181a commit 7edb61c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go/private/BUILD.sdk.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ filegroup(
"bin/go*",
"src/**",
"pkg/**",
"go.env*",
{goenv}
]),
)

Expand Down
4 changes: 4 additions & 0 deletions go/private/sdk.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,9 @@ def _sdk_build_file(ctx, platform, version, experiments):
if not "nocoverageredesign" in experiments and not "coverageredesign" in experiments:
experiments = experiments + ["nocoverageredesign"]

# TODO(sluongng): Remove this once we drop support for Go 1.20
include_go_env = pv[1] >= 21

ctx.template(
"BUILD.bazel",
ctx.path(ctx.attr._sdk_build_file),
Expand All @@ -488,6 +491,7 @@ def _sdk_build_file(ctx, platform, version, experiments):
"{exe}": ".exe" if goos == "windows" else "",
"{version}": version,
"{experiments}": repr(experiments),
"{goenv}": "\"go.env\"," if include_go_env else "",
},
)

Expand Down

0 comments on commit 7edb61c

Please sign in to comment.