]> Cypherpunks repositories - gostls13.git/commit
cmd/go: match go-import package prefixes by slash
authorStephen McQuay (smcquay) <stephen@mcquay.me>
Fri, 3 Jun 2016 09:12:17 +0000 (02:12 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 3 Jun 2016 19:47:37 +0000 (19:47 +0000)
commitadf261b7d6ed17bdefadc29ff71ddaba667b1a99
treee5d5d3b918341748ad266942621380d6dda95e22
parent4b64c53c034b3a99a8a5dc3e8081342e77048561
cmd/go: match go-import package prefixes by slash

The existing implementation for path collision resolution would
incorrectly determine that:

    example.org/aa

collides with:

    example.org/a

This change splits by slash rather than comparing on a byte-by-byte
basis.

Fixes: #15947
Change-Id: I18b3aaafbc787c81253203cf1328bb3c4420a0c4
Reviewed-on: https://go-review.googlesource.com/23732
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
src/cmd/go/vcs.go
src/cmd/go/vcs_test.go