From f3fda69750d598bf18b4883a17eb1694399f0640 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 7 Sep 2025 14:21:11 +0300 Subject: [PATCH] Make module cache writeable --- pkg.info | 2 +- source.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg.info b/pkg.info index d1282af..73f427d 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,7 @@ name: micro description: A modern and intuitive terminal-based text editor version: 2.0.14 -revision: 3 +revision: 4 url: https://micro-editor.github.io/ license: MIT architecture: any diff --git a/source.sh b/source.sh index 0991cdd..a66de75 100644 --- a/source.sh +++ b/source.sh @@ -10,6 +10,9 @@ FILENAME="${DOWNLOAD##*/}" prepare() { wget "$DOWNLOAD" tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" + + cd "$BPM_SOURCE" + GOFLAGS="-modcacherw" go mod download } # The build function is executed in the source directory