From 76312192ae51440802f5e002208bcd824e9aacd4 Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Sat, 16 Sep 2023 04:52:18 +0300 Subject: [PATCH] Containerfile: add go version substitutes Signed-off-by: HeshamTB --- Containerfile | 5 ++++- go.mod | 4 +++- go.sum | 2 ++ go.work | 6 ++++++ 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 go.sum create mode 100644 go.work diff --git a/Containerfile b/Containerfile index 27c7719..5508128 100644 --- a/Containerfile +++ b/Containerfile @@ -4,7 +4,10 @@ WORKDIR /build COPY ./ /build -RUN sed -i 's/1.21.0/1.21/g' /build/go.mod +RUN ls -lah +RUN sed -i 's/1.21.1/1.21/g' /build/go.mod +RUN sed -i 's/1.21.1/1.21/g' /build/go.work +RUN sed -i 's/1.21.1/1.21/g' /build/apkupdater/go.mod RUN go mod edit -go=1.19 RUN go build -o viddl . diff --git a/go.mod b/go.mod index 61ede30..7e9c33f 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,5 @@ module gitea.hbanafa.com/hesham/viddl -go 1.21.0 +go 1.21.1 + +require gitea.hbanafa.com/hesham/viddl/apkupdater v0.0.0-20230915215353-fea50ca37e85 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..95c6030 --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +gitea.hbanafa.com/hesham/viddl/apkupdater v0.0.0-20230915215353-fea50ca37e85 h1:rnioWA0GcN24FB0RJt87T0wSXVP1TcCdWjBqoLapYb8= +gitea.hbanafa.com/hesham/viddl/apkupdater v0.0.0-20230915215353-fea50ca37e85/go.mod h1:Sgh/I30w/7YHunFggHb+Gi163/eq6PRkphEXkK7crsc= diff --git a/go.work b/go.work new file mode 100644 index 0000000..371451d --- /dev/null +++ b/go.work @@ -0,0 +1,6 @@ +go 1.21.1 + +use ( + . + ./apkupdater +)