I have solve this question. by cloning the loraserver repository ,it’s release is same with the release of loraserver code that I want to build.
Besides,there are other errors:
cmd/loraserver/main.go:32:2: use of internal package not allowed
cmd/loraserver/main.go:33:2: use of internal package not allowed
cmd/loraserver/main.go:17:2: use of internal package not allowed
cmd/loraserver/main.go:34:2: use of internal package not allowed
cmd/loraserver/main.go:35:2: use of internal package not allowed
cmd/loraserver/main.go:36:2: use of internal package not allowed
cmd/loraserver/main.go:40:2: use of internal package not allowed
cmd/loraserver/main.go:19:2: use of internal package not allowed
cmd/loraserver/main.go:38:2: use of internal package not allowed
cmd/loraserver/main.go:41:2: use of internal package not allowed
I have cloned the loraserver repository under $GOPATH/src/github.com/brocaar/loraserver
Maybe you could share how you solved your issue, in case others run into the same error?
Regarding your “use of internal package not allowed”. Not sure if I can help. Could you try the provided Docker development image to see if the issue persists (it should not)? Then look from there what the differences are between your own environment and the Docker environment. See also: https://docs.loraserver.io/loraserver/community/source/