Lora-app-server build from source failed


#1

I had issue similar for this:
https://forum.loraserver.io/t/lora-gateway-bridge-docker-install/3764

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.


#2

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

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

in Makefile works fine.


#3

Please see Compiling the LoRa App Server source-code.


closed #4