<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/cmd/internal/doc/main.go, branch fix-runtime-test-GOMAXPROCS</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=fix-runtime-test-GOMAXPROCS</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=fix-runtime-test-GOMAXPROCS'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2025-07-15T21:51:11Z</updated>
<entry>
<title>cmd/internal/doc: upgrade godoc pkgsite to 01b046e</title>
<updated>2025-07-15T21:51:11Z</updated>
<author>
<name>Michael Matloob</name>
<email>matloob@golang.org</email>
</author>
<published>2025-07-15T15:26:39Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=b4309ece66ca989a38ed65404850a49ae8f92742'/>
<id>urn:sha1:b4309ece66ca989a38ed65404850a49ae8f92742</id>
<content type='text'>
Increase the dependency on the doc tool to bring in the fixes to
CL 687918 and CL 687976.

Fixes golang/go#74459

Change-Id: I9cdefdfd9792a142ad14bae3d4f7bb9d8256a246
Reviewed-on: https://go-review.googlesource.com/c/go/+/687997
Reviewed-by: Jonathan Amsterdam &lt;jba@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Michael Matloob &lt;matloob@google.com&gt;
</content>
</entry>
<entry>
<title>cmd/internal/doc: fix GOROOT skew and path joining bugs</title>
<updated>2025-07-07T20:13:37Z</updated>
<author>
<name>Michael Matloob</name>
<email>matloob@golang.org</email>
</author>
<published>2025-07-01T21:16:53Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=ef46e1b164e4a530c278434a9aaa2b23ce9a9d12'/>
<id>urn:sha1:ef46e1b164e4a530c278434a9aaa2b23ce9a9d12</id>
<content type='text'>
Use the goCmd() function to get the go command to invoke, so that when
GOROOT is set, the go command that's invoked uses the same GOROOT.
Otherwise there will be skew between the go command and the tools and
runtime. Also use the environment when determining GOPROXY and
GOMODCACHE, and use url.Join so the slashes in 'http://' aren't
collapsed into one.

Change-Id: Ie36ca2fffdb015a7f5f9bd7f514850e41fad2c1a
Reviewed-on: https://go-review.googlesource.com/c/go/+/685319
Reviewed-by: Michael Matloob &lt;matloob@google.com&gt;
Reviewed-by: Michael Pratt &lt;mpratt@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>cmd/doc: fix -http on Windows</title>
<updated>2025-06-29T14:01:25Z</updated>
<author>
<name>qmuntal</name>
<email>quimmuntal@gmail.com</email>
</author>
<published>2025-06-27T10:45:22Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=acb914f2c2a3ec3dd227812ba6b119480d6400cd'/>
<id>urn:sha1:acb914f2c2a3ec3dd227812ba6b119480d6400cd</id>
<content type='text'>
On Windows, GOMODCACHE almost never starts with a slash, and
"go doc -http" constructs a GOPROXY URL by doing "file://" + GOMODCACHE,
resulting in an invalid file URI.

For example, if GOMODCACHE is "C:\foo", then the file URI should be
"file:///C:/foo", but it becomes "file://C:/foo" instead, where "C:" is
understood as a host name, not a drive letter.

Fixes #74137.

Change-Id: I23e776e0f649a0062e01d1a4a6ea8268ba467331
Reviewed-on: https://go-review.googlesource.com/c/go/+/684575
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Michael Matloob &lt;matloob@golang.org&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
Reviewed-by: Michael Matloob &lt;matloob@google.com&gt;
</content>
</entry>
<entry>
<title>cmd/internal/doc: increase version of pkgsite doc command that's run</title>
<updated>2025-06-09T17:32:23Z</updated>
<author>
<name>Michael Matloob</name>
<email>matloob@golang.org</email>
</author>
<published>2025-06-09T15:10:53Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=ac1686752bf65eaefebb340bd642177e2cc27bde'/>
<id>urn:sha1:ac1686752bf65eaefebb340bd642177e2cc27bde</id>
<content type='text'>
This will incorporate the changes in CL 675957, CL 677596, and
CL 675958.

For #73848

Change-Id: Ie3d313e055a36b5b7aafec4a7462a1ced8a9f923
Reviewed-on: https://go-review.googlesource.com/c/go/+/680176
Reviewed-by: Michael Matloob &lt;matloob@google.com&gt;
Reviewed-by: Jonathan Amsterdam &lt;jba@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>cmd/doc: build cmd/doc directly into the go command</title>
<updated>2025-06-03T18:28:46Z</updated>
<author>
<name>Michael Matloob</name>
<email>matloob@golang.org</email>
</author>
<published>2025-05-30T22:20:05Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=94764d093822721337243de77aeba72df1f9b230'/>
<id>urn:sha1:94764d093822721337243de77aeba72df1f9b230</id>
<content type='text'>
There are a couple of places where our tests expect that 'go doc'
doesn't need to do a build. Invoke the cmd/doc code directly by the go
command instead of starting the doc tool in a separate process so we can
preserve that property.

This change moves most of the doc code into the package
cmd/internal/doc, and exposes a Main function from that function that's
called both by the cmd/doc package, and by go doc.

This change makes couple of additional changes to intergrate doc into
the go command:

The counter.Open call and the increment of invocations counter are only
needed by cmd/doc. The go command will open the counters file and
increment a counter for the doc subcommand.

We add a cmd_go_bootstrap tagged variant of the file that defines go doc
so that we don't end up linking net into the bootstrap version of the go
command. We don't need doc in that version of the command.

We create a new flagSet rather than using flag.CommandLine because when
running as part of the go command, the flags to "go doc" won't be the top
level flags.

We change TestGoListTest in go_test.go to use gofmt instead of doc as an
example of a main package in cmd with an in-package test.

For #71867

Change-Id: I3e3df83e5fa266559606fdc086b461165e09f037
Reviewed-on: https://go-review.googlesource.com/c/go/+/677775
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Michael Pratt &lt;mpratt@google.com&gt;
Reviewed-by: Michael Matloob &lt;matloob@google.com&gt;
</content>
</entry>
</feed>
