• Jonathan Nieder's avatar
    go/build: allow ~ in middle of path, just not at beginning · 392d5feb
    Jonathan Nieder authored
    CL 7799045 relaxed the restriction in cmd/go on ~ in GOPATH
    to allow paths with ~ in the middle while continuing to
    protect against the common mistake of using GOPATH='~/home'
    instead of GOPATH=~/home.  Unfortunately go/build still
    filters these paths out:
    
            $ GOPATH=/tmp/test~ing go build
            test.go:22:2: cannot find package "test" in any of:
                    /usr/lib/go/test (from $GOROOT)
                    ($GOPATH not set)
    
    So relax the requirement in go/build, too.
    
    R=golang-dev, rsc
    CC=golang-dev
    https://golang.org/cl/7826043
    392d5feb
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...