Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorcloudy committed Jul 18, 2024
1 parent 8c9de84 commit e30b3e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go/tools/bazel_testing/bazel_testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ 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")
// --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() {
Expand Down

0 comments on commit e30b3e5

Please sign in to comment.