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

View File

@@ -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 }}

View File

@@ -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=" \