From d9384ded4cb93ce06ee98154bb0ee848a2522ffb Mon Sep 17 00:00:00 2001 From: hxt Date: Tue, 8 Jul 2025 21:14:58 +0800 Subject: [PATCH] =?UTF-8?q?ci(drone):=20=E6=B7=BB=E5=8A=A0=20Go=20?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E5=92=8C=E6=9E=84=E5=BB=BA=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 restore cache 和 rebuild cache 步骤中添加了 go-mod-cache 和 go --- .drone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.drone.yml b/.drone.yml index 3d1bea2..cd41783 100644 --- a/.drone.yml +++ b/.drone.yml @@ -21,6 +21,8 @@ steps: - name: build image: golang:1.22 commands: + - mkdir -p /go/pkg/mod + - mkdir -p /root/.cache/go-build - echo "test" > /go/pkg/mod/testfile - echo "==== Before build, go/pkg/mod ====" - ls -lR /go/pkg/mod || echo "/go/pkg/mod not found"