From 94f3704f0e9e837d346a327d41114a864cb4d648 Mon Sep 17 00:00:00 2001 From: Gabriel Radureau Date: Wed, 8 Apr 2026 09:29:09 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20set=20GOPATH=20correctly?= =?UTF-8?q?=20for=20Swagger=20docs=20generation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Set GOPATH environment variable to workspace root - Allow go generate to find go.mod from parent directories - Fixes go.mod file not found error in CI workflow --- .gitea/workflows/ci-cd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index 5759526..2946550 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -167,7 +167,7 @@ jobs: run: echo "DEPS_HASH=${{ needs.build-cache.outputs.deps_hash }}" >> $GITHUB_ENV - name: Generate Swagger Docs using Docker Compose - run: docker compose -f docker-compose.build.yml run --rm -w /workspace build-cache sh -c "cd /workspace/pkg/server && go generate" + run: docker compose -f docker-compose.build.yml run --rm -w /workspace/pkg/server -e GOPATH=/workspace build-cache sh -c "go generate" - name: Build all packages using Docker Compose run: docker compose -f docker-compose.build.yml run --rm -w /workspace build-cache sh -c "go build ./..."