🐛 fix: use correct workspace path for Swagger docs generation

- Update working directory to full repository path

- Set GOPATH to match repository root

- Fixes go.mod file not found error in CI workflow
This commit is contained in:
2026-04-08 09:30:08 +02:00
parent 94f3704f0e
commit b31c6e46f9

View File

@@ -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/pkg/server -e GOPATH=/workspace build-cache sh -c "go generate"
run: docker compose -f docker-compose.build.yml run --rm -w /workspace/arcodange/dance-lessons-coach/pkg/server -e GOPATH=/workspace/arcodange/dance-lessons-coach 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 ./..."