From bf87ebdb3e55d14749db54153c9bfb192ddb702a Mon Sep 17 00:00:00 2001 From: nathan Date: Sat, 9 Jul 2022 19:57:16 -0400 Subject: [PATCH] alskdjaslkdjas --- Dockerfile | 7 ++++++- examples/animation/main.go | 2 +- examples/basic/main.go | 2 +- examples/image/main.go | 2 +- examples/rpc/client/main.go | 5 ++--- examples/rpc/server/main.go | 5 ++--- go.mod | 2 +- matrix.go | 2 +- rpc/client.go | 2 +- rpc/server.go | 2 +- 10 files changed, 17 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4648366..1dbcafe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,15 @@ -FROM golang:1.18.3-buster +FROM golang:1.18.3-buster as builder WORKDIR /usr/src/app COPY . . RUN apt-get install -y git +RUN go mod tidy -e +RUN go mod vendor WORKDIR /usr/src/app/vendor/rpi-rgb-led-matrix/ RUN git submodule update --init RUN make WORKDIR /usr/src/app RUN go install -v ./... + +FROM golang:1.18.3-buster +COPY --from=builder /usr/src/app/vendor/rpi-rgb-led-matrix/lib/. /lib diff --git a/examples/animation/main.go b/examples/animation/main.go index c9d69ed..ca113e7 100644 --- a/examples/animation/main.go +++ b/examples/animation/main.go @@ -7,7 +7,7 @@ import ( "time" "github.com/fogleman/gg" - "github.com/mcuadros/go-rpi-rgb-led-matrix" + "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix" ) var ( diff --git a/examples/basic/main.go b/examples/basic/main.go index fe5b3ee..4449904 100644 --- a/examples/basic/main.go +++ b/examples/basic/main.go @@ -5,7 +5,7 @@ import ( "fmt" "image/color" - "github.com/mcuadros/go-rpi-rgb-led-matrix" + "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix" ) var ( diff --git a/examples/image/main.go b/examples/image/main.go index 95ec382..b80431b 100644 --- a/examples/image/main.go +++ b/examples/image/main.go @@ -6,7 +6,7 @@ import ( "time" "github.com/disintegration/imaging" - "github.com/mcuadros/go-rpi-rgb-led-matrix" + "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix" ) var ( diff --git a/examples/rpc/client/main.go b/examples/rpc/client/main.go index 825423a..c318cca 100644 --- a/examples/rpc/client/main.go +++ b/examples/rpc/client/main.go @@ -4,9 +4,8 @@ import ( "flag" "os" "time" - - "github.com/mcuadros/go-rpi-rgb-led-matrix" - "github.com/mcuadros/go-rpi-rgb-led-matrix/rpc" + "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix" + "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix/rpc" ) var ( diff --git a/examples/rpc/server/main.go b/examples/rpc/server/main.go index 7b9a232..bd14d2e 100644 --- a/examples/rpc/server/main.go +++ b/examples/rpc/server/main.go @@ -2,9 +2,8 @@ package main import ( "flag" - - "github.com/mcuadros/go-rpi-rgb-led-matrix" - "github.com/mcuadros/go-rpi-rgb-led-matrix/rpc" + "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix" + "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix/rpc" ) var ( diff --git a/go.mod b/go.mod index 09c0fb2..a4e6eab 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix.git +module gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix go 1.17 diff --git a/matrix.go b/matrix.go index 8b9ddf1..1f71569 100644 --- a/matrix.go +++ b/matrix.go @@ -43,7 +43,7 @@ import ( "os" "unsafe" - "github.com/mcuadros/go-rpi-rgb-led-matrix/emulator" + "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix/emulator" ) // DefaultConfig default WS281x configuration diff --git a/rpc/client.go b/rpc/client.go index de167b7..d39b536 100644 --- a/rpc/client.go +++ b/rpc/client.go @@ -5,7 +5,7 @@ import ( "image/color" "net/rpc" - "github.com/mcuadros/go-rpi-rgb-led-matrix" + "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix" ) func init() { diff --git a/rpc/server.go b/rpc/server.go index 9840bd2..252aac2 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -8,7 +8,7 @@ import ( "net/http" "net/rpc" - "github.com/mcuadros/go-rpi-rgb-led-matrix" + "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix" ) type RPCMatrix struct {