1
0
mirror of https://github.com/golang/go synced 2024-11-22 05:04:40 -07:00

cmd: relocate cmd/go/internal/par to cmd/internal/par

Relocate cmd/go's internal/par package up a level into
cmd/internal/par, 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: I920a5d5c9b362584fabdbb2305414325b42856a3
Reviewed-on: https://go-review.googlesource.com/c/go/+/601355
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:02:06 +00:00
parent fd7d5a6e6c
commit 44cdbc2dac
23 changed files with 19 additions and 19 deletions

View File

@ -11,7 +11,7 @@ import (
"path/filepath"
"cmd/go/internal/cfg"
"cmd/go/internal/par"
"cmd/internal/par"
)
// Tool returns the path to the named tool (for example, "vet").

View File

@ -5,7 +5,7 @@
package cfg
import (
"cmd/go/internal/par"
"cmd/internal/par"
"os/exec"
)

View File

@ -39,11 +39,11 @@ import (
"cmd/go/internal/modindex"
"cmd/go/internal/modinfo"
"cmd/go/internal/modload"
"cmd/go/internal/par"
"cmd/go/internal/search"
"cmd/go/internal/str"
"cmd/go/internal/trace"
"cmd/go/internal/vcs"
"cmd/internal/par"
"cmd/internal/pkgpattern"
"golang.org/x/mod/modfile"

View File

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

View File

@ -27,8 +27,8 @@ import (
"cmd/go/internal/base"
"cmd/go/internal/lockedfile"
"cmd/go/internal/par"
"cmd/go/internal/web"
"cmd/internal/par"
"golang.org/x/mod/semver"
)

View File

@ -21,8 +21,8 @@ import (
"cmd/go/internal/base"
"cmd/go/internal/lockedfile"
"cmd/go/internal/par"
"cmd/go/internal/str"
"cmd/internal/par"
)
// A VCSError indicates an error using a version control system.

View File

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

View File

@ -15,9 +15,9 @@ import (
"cmd/go/internal/cfg"
"cmd/go/internal/modfetch/codehost"
"cmd/go/internal/par"
"cmd/go/internal/vcs"
web "cmd/go/internal/web"
"cmd/internal/par"
"golang.org/x/mod/module"
)

View File

@ -42,10 +42,10 @@ import (
"cmd/go/internal/imports"
"cmd/go/internal/modfetch"
"cmd/go/internal/modload"
"cmd/go/internal/par"
"cmd/go/internal/search"
"cmd/go/internal/toolchain"
"cmd/go/internal/work"
"cmd/internal/par"
"golang.org/x/mod/modfile"
"golang.org/x/mod/module"

View File

@ -29,8 +29,8 @@ import (
"cmd/go/internal/cfg"
"cmd/go/internal/fsys"
"cmd/go/internal/imports"
"cmd/go/internal/par"
"cmd/go/internal/str"
"cmd/internal/par"
)
// enabled is used to flag off the behavior of the module index on tip.

View File

@ -21,7 +21,7 @@ import (
"cmd/go/internal/cfg"
"cmd/go/internal/gover"
"cmd/go/internal/mvs"
"cmd/go/internal/par"
"cmd/internal/par"
"golang.org/x/mod/module"
)

View File

@ -8,7 +8,7 @@ import (
"cmd/go/internal/cfg"
"cmd/go/internal/gover"
"cmd/go/internal/mvs"
"cmd/go/internal/par"
"cmd/internal/par"
"context"
"errors"
"fmt"

View File

@ -21,9 +21,9 @@ import (
"cmd/go/internal/gover"
"cmd/go/internal/modfetch"
"cmd/go/internal/modindex"
"cmd/go/internal/par"
"cmd/go/internal/search"
"cmd/go/internal/str"
"cmd/internal/par"
"golang.org/x/mod/module"
)

View File

@ -120,9 +120,9 @@ import (
"cmd/go/internal/modfetch"
"cmd/go/internal/modindex"
"cmd/go/internal/mvs"
"cmd/go/internal/par"
"cmd/go/internal/search"
"cmd/go/internal/str"
"cmd/internal/par"
"golang.org/x/mod/module"
)

View File

@ -20,8 +20,8 @@ import (
"cmd/go/internal/gover"
"cmd/go/internal/lockedfile"
"cmd/go/internal/modfetch"
"cmd/go/internal/par"
"cmd/go/internal/trace"
"cmd/internal/par"
"golang.org/x/mod/modfile"
"golang.org/x/mod/module"

View File

@ -22,10 +22,10 @@ import (
"cmd/go/internal/gover"
"cmd/go/internal/imports"
"cmd/go/internal/modindex"
"cmd/go/internal/par"
"cmd/go/internal/search"
"cmd/go/internal/str"
"cmd/go/internal/trace"
"cmd/internal/par"
"cmd/internal/pkgpattern"
"golang.org/x/mod/module"

View File

@ -12,7 +12,7 @@ import (
"sort"
"sync"
"cmd/go/internal/par"
"cmd/internal/par"
"golang.org/x/mod/module"
)

View File

@ -10,8 +10,8 @@ import (
"cmd/go/internal/cache"
"cmd/go/internal/cfg"
"cmd/go/internal/load"
"cmd/go/internal/par"
"cmd/go/internal/str"
"cmd/internal/par"
"errors"
"fmt"
"internal/lazyregexp"

View File

@ -25,7 +25,7 @@ import (
"testing"
"cmd/go/internal/modfetch/codehost"
"cmd/go/internal/par"
"cmd/internal/par"
"golang.org/x/mod/module"
"golang.org/x/mod/semver"