File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ set_dependencies() {
4545
4646 while read package version; do
4747 (
48- local install_path=" ${GOPATH%%:* } /src/${package%%/ ...} "
48+ local pkg_path=$( echo " $package " | awk -F/ ' {print $1"/"$2"/"$3}' )
49+ local install_path=" ${GOPATH%%:* } /src/${pkg_path%%/ ...} "
4950 echo " >> Getting package " $package " "
5051
5152 # Retries in case of possible race conditions when installing a package
Original file line number Diff line number Diff line change @@ -9,4 +9,12 @@ assert "go run go_code.go" "v6.1"
99assert_raises " $GPM install <(echo 'github.com/pote/gpm-testing-package v6.2')"
1010assert " go run go_code.go" " v6.2"
1111
12+ # Subpackage
13+ version=" a6a0a737c00caf4d4c2bb589941ace0d688168bb"
14+ echo " github.com/garyburd/redigo/redis $version " > Godeps
15+ assert_raises " $GPM "
16+ rm Godeps
17+ cd $GOPATH /src/github.com/garyburd/redigo
18+ assert " git rev-parse HEAD" " $version "
19+
1220assert_end examples
You can’t perform that action at this time.
0 commit comments