x/tools/godoc/vcs/zipfs: New
can't be called with a *zip.Reader
#66117
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Go version
go version go1.22.0 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
Construct a
zip.ReadCloser
from anio.ReaderAt
suitable for use withzipfs.New
fromgolang.org/x/tools/godoc/vfs/zipfs
as follows:See https://go.dev/play/p/hFPUG1CYhdH for a complete program example
What did you see happen?
go vet
reports the following error:What did you expect to see?
The finding by
go vet
is legitimate, in that async.Once
is copied here, but I don't believe there is any way to construct thezip.ReadCloser
and not get this error.The text was updated successfully, but these errors were encountered: