From 980455fd2485f811fee460a93956f533526de578 Mon Sep 17 00:00:00 2001 From: krau <71133316+krau@users.noreply.github.com> Date: Wed, 27 Aug 2025 11:17:03 +0800 Subject: [PATCH] fix: remove go generate command from build process in Dockerfile and workflow --- .github/workflows/build-release.yml | 2 +- Dockerfile | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 0da6727..8e123e2 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -54,7 +54,7 @@ jobs: - name: Release Go Binary uses: wangyoucao577/go-release-action@v1 with: - pre_command: export CGO_ENABLED=0 && go generate ./... + pre_command: export CGO_ENABLED=0 goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }} github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/Dockerfile b/Dockerfile index 4fb519a..a7ea018 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,6 @@ RUN --mount=type=cache,target=/go/pkg/mod \ COPY . . RUN --mount=type=cache,target=/root/.cache/go-build \ --mount=type=cache,target=/go/pkg \ - go generate ./... && \ CGO_ENABLED=0 \ go build -trimpath \ -ldflags=" \