diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index 18d71d0..481f618 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -177,13 +177,13 @@ jobs: echo "CACHE_AVAILABLE=false" >> $GITHUB_ENV fi - - name: Install dependencies + - name: Check dependencies run: | if [ "${{ env.CACHE_AVAILABLE }}" = "true" ]; then - echo "Running in Docker Compose container..." - docker compose -f docker-compose.build.yml exec -w /workspace build-cache sh -c "go mod tidy" + echo "✅ Using pre-installed dependencies from Docker cache" + # No need to run go mod tidy - dependencies are already in the cache else - echo "Running natively..." + echo "Running natively - ensuring dependencies are up to date..." go mod tidy fi diff --git a/scripts/test-local-ci-cd.sh b/scripts/test-local-ci-cd.sh index 5a4af3e..13dc5c3 100755 --- a/scripts/test-local-ci-cd.sh +++ b/scripts/test-local-ci-cd.sh @@ -85,16 +85,16 @@ else fi echo "" -# 5. Install dependencies -echo "5. Installing dependencies..." +# 5. Check dependencies +echo "5. Checking dependencies..." if [ "$USE_DOCKER_CACHE" = true ]; then - echo "Running in Docker Compose container..." - docker compose -f docker-compose.build.yml exec -w /workspace build-cache sh -c "go mod tidy" + echo "✅ Using pre-installed dependencies from Docker cache" + # No need to run go mod tidy - dependencies are already in the cache else - echo "Running natively..." + echo "Running natively - ensuring dependencies are up to date..." go mod tidy fi -echo "✅ Dependencies installed" +echo "✅ Dependencies ready" echo "" # 6. Generate Swagger Docs