fix: remove go generate command from build process in Dockerfile and workflow

This commit is contained in:
krau
2025-08-27 11:17:03 +08:00
parent 24978470cd
commit 980455fd24
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ jobs:
- name: Release Go Binary - name: Release Go Binary
uses: wangyoucao577/go-release-action@v1 uses: wangyoucao577/go-release-action@v1
with: with:
pre_command: export CGO_ENABLED=0 && go generate ./... pre_command: export CGO_ENABLED=0
goos: ${{ matrix.goos }} goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }} goarch: ${{ matrix.goarch }}
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
-1
View File
@@ -13,7 +13,6 @@ RUN --mount=type=cache,target=/go/pkg/mod \
COPY . . COPY . .
RUN --mount=type=cache,target=/root/.cache/go-build \ RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg \ --mount=type=cache,target=/go/pkg \
go generate ./... && \
CGO_ENABLED=0 \ CGO_ENABLED=0 \
go build -trimpath \ go build -trimpath \
-ldflags=" \ -ldflags=" \