Hi - I can’t believe I am the first person to come across this, but I don’t see any reference to the following problem. I have a nanopi neo running xenial and have successfully installed go 1.9.
go get -u github.com/TheThingsNetwork/packet_forwarder
package github.com/TheThingsNetwork/ttn/api/gateway: cannot find package "github.com/TheThingsNetwork/ttn/api/gateway" in any of:
/usr/local/go/src/github.com/TheThingsNetwork/ttn/api/gateway (from $GOROOT)
/home/nicbkw/go/src/github.com/TheThingsNetwork/ttn/api/gateway (from $GOPATH)
package github.com/TheThingsNetwork/ttn/api/discovery: cannot find package "github.com/TheThingsNetwork/ttn/api/discovery" in any of:
/usr/local/go/src/github.com/TheThingsNetwork/ttn/api/discovery (from $GOROOT)
/home/nicbkw/go/src/github.com/TheThingsNetwork/ttn/api/discovery (from $GOPATH)
package github.com/TheThingsNetwork/ttn/api/fields: cannot find package "github.com/TheThingsNetwork/ttn/api/fields" in any of:
/usr/local/go/src/github.com/TheThingsNetwork/ttn/api/fields (from $GOROOT)
/home/nicbkw/go/src/github.com/TheThingsNetwork/ttn/api/fields (from $GOPATH)
package github.com/TheThingsNetwork/ttn/api/protocol: cannot find package "github.com/TheThingsNetwork/ttn/api/protocol" in any of:
/usr/local/go/src/github.com/TheThingsNetwork/ttn/api/protocol (from $GOROOT)
/home/nicbkw/go/src/github.com/TheThingsNetwork/ttn/api/protocol (from $GOPATH)
package github.com/TheThingsNetwork/ttn/api/protocol/lorawan: cannot find package "github.com/TheThingsNetwork/ttn/api/protocol/lorawan" in any of:
/usr/local/go/src/github.com/TheThingsNetwork/ttn/api/protocol/lorawan (from $GOROOT)
/home/nicbkw/go/src/github.com/TheThingsNetwork/ttn/api/protocol/lorawan (from $GOPATH)
package github.com/TheThingsNetwork/ttn/api/router: cannot find package "github.com/TheThingsNetwork/ttn/api/router" in any of:
/usr/local/go/src/github.com/TheThingsNetwork/ttn/api/router (from $GOROOT)
/home/nicbkw/go/src/github.com/TheThingsNetwork/ttn/api/router (from $GOPATH)
There is a question similar to mine on StackOverflow (https://stackoverflow.com/questions/45843678/cannot-find-any-package) and the comments are shown below:
There is no protocol package in github.com/TheThingsNetwork/ttn/tree/develop/api. Referenced in github.com/TheThingsNetwork/packet_forwarder/blob/master/pktfwd/…. Quite a few references to packages that don’t exist. – captncraig Aug 23 at 15:26
@captncraig you found the references in master, but tried to resolve them in develop. They exist in master: github.com/TheThingsNetwork/ttn/tree/master/api – Adrian Aug 23 at 16:27
Hmm, it looks like develop is the default branch in github, and what gets pulled via go get. – captncraig Aug 23 at 16:35
Yep, looks like you’re right - package maintainer broke it by setting it to default develop. – Adrian Aug 23 at 16:53
So, help please!