🐛 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:
@@ -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 ./..."
|
||||
|
||||
Reference in New Issue
Block a user