This repo illustrates a fix for zipfs
so it can ReadDir("/")
per golang/go#12743.
Requires go 1.5.
go get github.com/jdhenke/golang-zipfs-error-repro
cd $GOPATH/src/github.com/jdhenke/golang-zipfs-error-repro
git submodule init
git submodule update
go get
This repo uses a vendored clone of the tools repo with a fix for this bug, so...
GO15VENDOREXPERIMENT=0
uses the buggy, public code and cannot list /
$ GO15VENDOREXPERIMENT=0 go run main.go
2015/09/24 20:06:36 file not found: /
exit status 1
GO15VENDOREXPERIMENT=1
uses the fixed, vendored code and can list /
$ GO15VENDOREXPERIMENT=1 go run main.go
2015/09/24 20:06:38 Found: bar
2015/09/24 20:06:38 Found: foo