««« CL
4807048 /
ae3b2b092cf7
goinstall: error out with paths that end with '/'
R=adg, rsc, tarmigan+golang
CC=golang-dev
https://golang.org/cl/
4807048
»»»
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/
4968077
visit[pkg] = done
}()
+ // Don't allow trailing '/'
+ if _, f := filepath.Split(pkg); f == "" {
+ errorf("%s should not have trailing '/'\n", pkg)
+ return
+ }
+
// Check whether package is local or remote.
// If remote, download or update it.
tree, pkg, err := build.FindTree(pkg)