🐛 fix: use command-line volume mount for correct workspace path
- Override docker-compose.yml volume with explicit host path - Mount full repository root to /workspace in container - Simplifies debugging and ensures go.mod is accessible
This commit is contained in:
@@ -166,11 +166,8 @@ jobs:
|
|||||||
- name: Export DEPS_HASH for Docker Compose
|
- name: Export DEPS_HASH for Docker Compose
|
||||||
run: echo "DEPS_HASH=${{ needs.build-cache.outputs.deps_hash }}" >> $GITHUB_ENV
|
run: echo "DEPS_HASH=${{ needs.build-cache.outputs.deps_hash }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Debug workspace structure
|
|
||||||
run: docker compose -f docker-compose.build.yml run --rm build-cache sh -c "echo '=== Workspace structure ===' && ls -la /workspace && echo '=== Looking for go.mod ===' && find /workspace -name 'go.mod' 2>/dev/null || echo 'go.mod not found' && echo '=== Current directory ===' && pwd"
|
|
||||||
|
|
||||||
- name: Generate Swagger Docs using Docker Compose
|
- name: Generate Swagger Docs using Docker Compose
|
||||||
run: docker compose -f docker-compose.build.yml run --rm build-cache sh -c "cd /workspace && echo '=== Before go generate ===' && pwd && ls -la && echo '=== Running go generate ===' && go generate ./pkg/server/"
|
run: docker compose -f docker-compose.build.yml run --rm -v /workspace/arcodange/dance-lessons-coach:/workspace build-cache sh -c "cd /workspace && go generate ./pkg/server/"
|
||||||
|
|
||||||
- name: Build all packages using Docker Compose
|
- 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 ./..."
|
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