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 @@ -12,4 +12,12 @@ assert_raises "$GPM"
1212assert " go run go_code.go" " v6.2"
1313rm Godeps
1414
15+ # Subpackage
16+ version=" a6a0a737c00caf4d4c2bb589941ace0d688168bb"
17+ echo " github.com/garyburd/redigo/redis $version " > Godeps
18+ assert_raises " $GPM "
19+ rm Godeps
20+ cd $GOPATH /src/github.com/garyburd/redigo
21+ assert " git rev-parse HEAD" " $version "
22+
1523assert_end examples
You can’t perform that action at this time.
0 commit comments