aboutsummaryrefslogtreecommitdiff
path: root/cmd/pkgsite
diff options
context:
space:
mode:
authorJonathan Amsterdam <jba@google.com>2021-08-25 09:34:36 -0400
committerJonathan Amsterdam <jba@google.com>2021-08-25 16:03:05 +0000
commitf56f87325cb901864f64a654a82020dbcc86cd77 (patch)
treec6cdc4b2da1e0dc0105ba95fb53b4cecfcca499c /cmd/pkgsite
parent3f3c89d2437655e812b709328af91fc1988ee0a2 (diff)
downloadgo-x-pkgsite-f56f87325cb901864f64a654a82020dbcc86cd77.tar.xz
internal/fetchdatasource: rename from datasource
Rename the package and type by including the word "fetch," to describe what it does and distinguish it from other DataSources. For golang/go#47780 Change-Id: I7c674d8ba3dc16084a857039b0cc2b3147f27a29 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/344953 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
Diffstat (limited to 'cmd/pkgsite')
-rw-r--r--cmd/pkgsite/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/pkgsite/main.go b/cmd/pkgsite/main.go
index 4e6fab8e..0110008f 100644
--- a/cmd/pkgsite/main.go
+++ b/cmd/pkgsite/main.go
@@ -29,9 +29,9 @@ import (
"github.com/google/safehtml/template"
"golang.org/x/pkgsite/internal"
- "golang.org/x/pkgsite/internal/datasource"
"golang.org/x/pkgsite/internal/dcensus"
"golang.org/x/pkgsite/internal/fetch"
+ "golang.org/x/pkgsite/internal/fetchdatasource"
"golang.org/x/pkgsite/internal/frontend"
"golang.org/x/pkgsite/internal/log"
"golang.org/x/pkgsite/internal/middleware"
@@ -68,7 +68,7 @@ func main() {
func newServer(ctx context.Context, paths []string, gopathMode bool) (*frontend.Server, error) {
getters := buildGetters(ctx, paths, gopathMode)
- lds := datasource.Options{
+ lds := fetchdatasource.Options{
Getters: getters,
SourceClient: source.NewClient(time.Second),
BypassLicenseCheck: true,
@@ -92,7 +92,7 @@ func buildGetters(ctx context.Context, paths []string, gopathMode bool) []fetch.
err error
)
if gopathMode {
- mg, err = datasource.NewGOPATHModuleGetter(path)
+ mg, err = fetchdatasource.NewGOPATHModuleGetter(path)
} else {
mg, err = fetch.NewDirectoryModuleGetter("", path)
}