cmd: relocate cmd/go/internal/robustio to cmd/internal/robustio

Relocate cmd/go's internal/robustio package up a level into
cmd/internal/robustio, so that it can be used by other cmd/internal
packages. No change in functionality. This change is intended to be in
support of making the cmd/go script test framework available to other
commands in addition to just the Go command.

Updates #68606.

Change-Id: Ic8421ef59d9b7d79a50c3679d180cfa2546c4cd3
Reviewed-on: https://go-review.googlesource.com/c/go/+/601356
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
This commit is contained in:
Than McIntosh 2024-07-22 15:09:57 +00:00
parent 44cdbc2dac
commit 5feca4554f
11 changed files with 9 additions and 9 deletions

View File

@ -34,13 +34,13 @@ import (
"cmd/go/internal/cache"
"cmd/go/internal/cfg"
"cmd/go/internal/gover"
"cmd/go/internal/robustio"
"cmd/go/internal/search"
"cmd/go/internal/toolchain"
"cmd/go/internal/vcs"
"cmd/go/internal/vcweb/vcstest"
"cmd/go/internal/web"
"cmd/go/internal/work"
"cmd/internal/robustio"
"cmd/internal/sys"
cmdgo "cmd/go"

View File

@ -11,7 +11,7 @@ import (
"strings"
"testing"
"cmd/go/internal/robustio"
"cmd/internal/robustio"
)
func TestAbsolutePath(t *testing.T) {

View File

@ -24,8 +24,8 @@ import (
"cmd/go/internal/gover"
"cmd/go/internal/lockedfile"
"cmd/go/internal/modfetch/codehost"
"cmd/go/internal/robustio"
"cmd/internal/par"
"cmd/internal/robustio"
"cmd/internal/telemetry/counter"
"golang.org/x/mod/module"

View File

@ -25,10 +25,10 @@ import (
"cmd/go/internal/fsys"
"cmd/go/internal/gover"
"cmd/go/internal/lockedfile"
"cmd/go/internal/robustio"
"cmd/go/internal/str"
"cmd/go/internal/trace"
"cmd/internal/par"
"cmd/internal/robustio"
"golang.org/x/mod/module"
"golang.org/x/mod/sumdb/dirhash"

View File

@ -6,7 +6,7 @@ package script
import (
"cmd/go/internal/cfg"
"cmd/go/internal/robustio"
"cmd/internal/robustio"
"errors"
"fmt"
"internal/diff"

View File

@ -26,10 +26,10 @@ import (
"cmd/go/internal/cache"
"cmd/go/internal/cfg"
"cmd/go/internal/load"
"cmd/go/internal/robustio"
"cmd/go/internal/str"
"cmd/go/internal/trace"
"cmd/internal/buildid"
"cmd/internal/robustio"
)
// A Builder holds global state about a build.
@ -560,9 +560,9 @@ func (b *Builder) CompileAction(mode, depMode BuildMode, p *load.Package) *Actio
if p.Internal.PGOProfile != "" {
pgoAction := b.cacheAction("preprocess PGO profile "+p.Internal.PGOProfile, nil, func() *Action {
a := &Action{
Mode: "preprocess PGO profile",
Actor: &pgoActor{input: p.Internal.PGOProfile},
Objdir: b.NewObjdir(),
Mode: "preprocess PGO profile",
Actor: &pgoActor{input: p.Internal.PGOProfile},
Objdir: b.NewObjdir(),
}
a.Target = filepath.Join(a.Objdir, "pgo.preprofile")