Lora-app-server build from source failed


I had issue similar for this:

go get -u github.com/goreleaser/goreleaser
package github.com/kamilsk/retry/v3: cannot find package "github.com/kamilsk/retry/v3" in any of:
        /usr/local/go/src/github.com/kamilsk/retry/v3 (from $GOROOT)
        /go/src/github.com/kamilsk/retry/v3 (from $GOPATH)
package github.com/kamilsk/retry/v3/backoff: cannot find package "github.com/kamilsk/retry/v3/backoff" in any of:
        /usr/local/go/src/github.com/kamilsk/retry/v3/backoff (from $GOROOT)
        /go/src/github.com/kamilsk/retry/v3/backoff (from $GOPATH)
package github.com/kamilsk/retry/v3/strategy: cannot find package "github.com/kamilsk/retry/v3/strategy" in any of:
        /usr/local/go/src/github.com/kamilsk/retry/v3/strategy (from $GOROOT)
        /go/src/github.com/kamilsk/retry/v3/strategy (from $GOPATH)
make: *** [Makefile:68: dev-requirements] Error 1
ERROR: Service 'appserver' failed to build: The command '/bin/sh -c make dev-requirements' returned a non-zero code: 2

Seems that something changed in golang packages used in lora-app-server software.


goreleaser need to be used as precompiled binary.
RUN wget https://github.com/goreleaser/goreleaser/releases/download/v0.101.0/goreleaser_Linux_x86_64.tar.gz
to Dockerfile before
string and
RUN tar -xzf goreleaser_Linux_x86_64.tar.gz -C /go/bin/
RUN make dev-requirements

With commenting
go get -u github.com/goreleaser/goreleaser

in Makefile works fine.


Please see Compiling the LoRa App Server source-code.

closed #4