Skip to content

Commit

Permalink
Migrate to macos_arm64 (#3990)
Browse files Browse the repository at this point in the history
* Migrate to macos_arm64

* Add comment

* Update bazel_testing.go
  • Loading branch information
meteorcloudy committed Jul 18, 2024
1 parent 1a32e03 commit fb3afab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ tasks:
- "@go_default_sdk//..."
test_targets:
- "//..."
macos_legacy:
macos_arm64:
shell_commands:
- tests/core/cgo/generate_imported_dylib.sh
build_flags:
Expand Down
5 changes: 4 additions & 1 deletion go/tools/bazel_testing/bazel_testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ func TestMain(m *testing.M, args Args) {
// hide that this code is executing inside a bazel test.
func BazelCmd(args ...string) *exec.Cmd {
cmd := exec.Command("bazel")
cmd.Args = append(cmd.Args, "--nosystem_rc", "--nohome_rc")
// --nosystem_rc isn't used here because Bazel may need essential flags set in
// system rc to be able to work correctly
// See https://github.com/bazelbuild/rules_go/pull/3969#issuecomment-2220405416
cmd.Args = append(cmd.Args, "--nohome_rc")
cmd.Args = append(cmd.Args, args...)
for _, e := range os.Environ() {
// Filter environment variables set by the bazel test wrapper script.
Expand Down

0 comments on commit fb3afab

Please sign in to comment.