Open Goclipse27 opened 1 year ago
When I try pkgsite with proxy I get below error
pkgsite -proxy (GOPROXY - https://proxy.golang.org,direct)
BYPASSING LICENSE CHECKING: MAY DISPLAY NON-REDISTRIBUTABLE INFORMATION 2023/10/28 17:24:30 Info: go/packages.Load(std) loaded 0 packages from C:\Program Files\Go in 22.9285ms 2023/10/28 17:24:30 Error: loading packages from stdlib: err: fork/exec C:\Program Files\Go\bin\go.exe: The parameter is incorrect.: stderr: 2023/10/28 17:24:30 Info: Listening on addr http://localhost:8080 2023/10/28 17:25:09 Info: FetchDataSource: fetching std@latest 2023/10/28 17:25:09 Info: FetchDataSource: fetched std@latest using *fetch.proxyModuleGetter in 5.7355ms with error FetchModule("std", "latest"): proxy.Client.Info("std", "latest"): Client.readBody("std", "latest", "info"): Client.escapedURL("std", "latest", "info"): path: malformed module path "std": missing dot in first path element: invalid argument 2023/10/28 17:25:09 Error: serveUnitPage(ctx, w, r, ds, &{std std latest}): FetchDataSource.GetUnitMeta("std", "std", "latest"): FetchDataSource.findModule("std", "std", "latest"): FetchDataSource.getModule("std", "latest"): FetchModule("std", "latest"): proxy.Client.Info("std", "latest"): Client.readBody("std", "latest", "info"): Client.escapedURL("std", "latest", "info"): path: malformed module path "std": missing dot in first path element: invalid argument
Note: However, when I tried local packages(Cloned from repo to local), they are working , screenshots attached.
@bcmills - I have my local devel golang - set GOVERSION=devel go1.22-b5f87b5407 Tue Oct 24 20:28:25 2023 +0000 and GOROOT and tools are all local development directory. It is not able to show pkgsite and has shown above errors.
However when I point my GOROOT to my base golang installation "C:\Program Files\go" (go1.21.3) and respective set GOTOOLDIR, I am able to see the local stdlib code changes reflecting in the documentation. Looks like I am using different toolchain here to render local development stdlib documentation on pkgsite? Is this an issue to be reported?
CC @matloob @jba
Michael, could this be related to recent cmd/pkgsite changes?
@findleyr yes, I think it is related to the recent cmd/pkgsite changes.
@matloob thanks, tentatively assigned to you to investigate further.
Change https://go.dev/cl/540635 mentions this issue: internal/stdlib: pass -f to git fetch in remoteGoRepo.clone
I was able to reproduce the Error: loading packages from stdlib: err: fork/exec $GOROOT\bin\go.exe: The parameter is incorrect.: stderr:
error on Windows. Seems like it's only happening there.
The refusing to fetch into branch 'refs/heads/main'
may be the same as issue #63254
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes. But the ultimate intention is to run pkgsite for main go repository - std@latest against master(1.22) branch.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
I was hoping to see the documentation website like pkg.go.dev and std libs listed and to look at their documentation.
What did you see instead?