You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmd/internal/sys: migrate support.go functions to new internal pkg
Separate out the functions from cmd/internal/sys/support.go and
migrate them to a new package internal/platform, so that functions such as
"RaceDetectorSupported" can be called from tests in std as well as in
cmd. This isn't a complete move of everything in cmd/internal/sys;
there are still many functions left.
The original version of this CL (patch set 1) called the new package
"internal/sys", but for packages that needed both "internal/sys" and
"cmd/internal/sys" the import of the former had to be done with a
different name, which was confusing and also required a hack in
cmd/dist.
Updates #56006.
Change-Id: I866d62e75adbf3a640a06e2c7386a6e9e2a18d91
Reviewed-on: https://go-review.googlesource.com/c/go/+/438475
Reviewed-by: Bryan Mills <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Cherry Mui <[email protected]>
Run-TryBot: Than McIntosh <[email protected]>
Copy file name to clipboardExpand all lines: src/cmd/go/script_test.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ import (
15
15
"fmt"
16
16
"go/build"
17
17
"internal/buildcfg"
18
+
"internal/platform"
18
19
"internal/testenv"
19
20
"internal/txtar"
20
21
"io/fs"
@@ -35,7 +36,6 @@ import (
35
36
"cmd/go/internal/par"
36
37
"cmd/go/internal/robustio"
37
38
"cmd/go/internal/work"
38
-
"cmd/internal/sys"
39
39
)
40
40
41
41
vartestSum=flag.String("testsum", "", `may be tidy, listm, or listall. If set, TestScript generates a go.sum file at the beginning of each test and updates test files if they pass.`)
@@ -459,7 +459,7 @@ Script:
459
459
break
460
460
}
461
461
ifvalue, found:=strings.CutPrefix(cond.tag, "buildmode:"); found {
0 commit comments