robfig / glock

MIT License
230 stars 27 forks source link

Dependency Issue With googlemaps.github.io/maps #39

Open mhupman opened 7 years ago

mhupman commented 7 years ago

Hello,

Having some trouble adding a dependency on googlemaps.github.io/maps. In a folder ("googlemapstest") in the root of my $GOPATH with a main.go as follows:

package main

import (
    "fmt"
    "googlemaps.github.io/maps"
)

func main() {
    fmt.Println(maps.AvoidFerries)
}

Running go get googlemaps.github.io/maps and glock save googlemapstest which work as expected. Then, attempting to glock sync:

admin$ glock sync googlemapstest
golang.org/x/net                                   66f0418ca412 [OK]
googlemaps.github.io/maps                          0a3b50a8f265 [OK]
failed to get: googlemaps.github.io/maps/internal

> go get -v -d googlemaps.github.io/maps/internal
(success)

> import googlemaps.github.io/maps/internal
no repo found: /Users/admin/repo/alpha/gocode/src/googlemaps.github.io/maps/internal

I'm wondering if it isn't related to the import path (googlemaps.github.io/maps) being different that then underlying repo path (github.com/googlemaps/google-maps-services-go)?