1
0
mirror of https://github.com/golang/go synced 2024-11-26 16:57:14 -07:00

internal,cmd/internal: relocate covcmd package from std to cmd

Relocate the 'covcmd' package from .../internal/coverage to
.../cmd/internal/cov, to reflect the fact that the definitions in this
package are used only in cmd, not in std.

Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-windows-amd64-longtest
Change-Id: I65bcc34736d1d0a23134a6c91c17ff138cd45431
Reviewed-on: https://go-review.googlesource.com/c/go/+/526595
Reviewed-by: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Than McIntosh 2023-09-07 11:06:35 -04:00
parent 36e75f67ab
commit 3fb1d95149
9 changed files with 9 additions and 9 deletions

View File

@ -5,11 +5,11 @@
package base
import (
"cmd/internal/cov/covcmd"
"encoding/json"
"flag"
"fmt"
"internal/buildcfg"
"internal/coverage/covcmd"
"internal/platform"
"log"
"os"

View File

@ -5,9 +5,9 @@
package main_test
import (
"cmd/internal/cov/covcmd"
"encoding/json"
"fmt"
"internal/coverage/covcmd"
"internal/testenv"
"os"
"path/filepath"

View File

@ -6,6 +6,7 @@ package main
import (
"bytes"
"cmd/internal/cov/covcmd"
"encoding/json"
"flag"
"fmt"
@ -13,7 +14,6 @@ import (
"go/parser"
"go/token"
"internal/coverage"
"internal/coverage/covcmd"
"internal/coverage/encodemeta"
"internal/coverage/slicewriter"
"io"
@ -51,7 +51,7 @@ where -pkgcfg points to a file containing the package path,
package name, module path, and related info from "go build",
and -outfilelist points to a file containing the filenames
of the instrumented output files (one per input file).
See https://pkg.go.dev/internal/coverage/covcmd#CoverPkgConfig for
See https://pkg.go.dev/cmd/internal/cov/covcmd#CoverPkgConfig for
more on the package config.
`

View File

@ -63,7 +63,7 @@ var bootstrapDirs = []string{
"go/constant",
"internal/abi",
"internal/coverage",
"internal/coverage/covcmd",
"cmd/internal/cov/covcmd",
"internal/bisect",
"internal/buildcfg",
"internal/goarch",

View File

@ -9,12 +9,12 @@ package work
import (
"bufio"
"bytes"
"cmd/internal/cov/covcmd"
"container/heap"
"context"
"debug/elf"
"encoding/json"
"fmt"
"internal/coverage/covcmd"
"internal/platform"
"os"
"path/filepath"

View File

@ -10,11 +10,11 @@ import (
"cmd/go/internal/base"
"cmd/go/internal/cfg"
"cmd/go/internal/str"
"cmd/internal/cov/covcmd"
"context"
"encoding/json"
"fmt"
"internal/coverage"
"internal/coverage/covcmd"
"io"
"os"
"path/filepath"

View File

@ -8,13 +8,13 @@ package work
import (
"bytes"
"cmd/internal/cov/covcmd"
"context"
"crypto/sha256"
"encoding/json"
"errors"
"fmt"
"go/token"
"internal/coverage/covcmd"
"internal/lazyregexp"
"io"
"io/fs"

View File

@ -625,7 +625,7 @@ var depsRules = `
< internal/coverage/cformat;
internal/coverage, crypto/sha256, FMT
< internal/coverage/covcmd;
< cmd/internal/cov/covcmd;
encoding/json,
runtime/debug,