- Bypass Docker entirely for Swagger generation
- Test if issue is Docker-specific or workspace-related
- Simplest possible approach to isolate the problem
- Remove -w flags that conflict with Gitea's auto-generated mounts
- Let Docker Compose use default working directory from docker-compose.yml
- Align with Gitea Actions volume mounting best practices
- 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
- Add debug step to check workspace directory structure
- Add pwd and ls commands to Swagger generation step
- Helps diagnose go.mod file not found issue
- 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
- Change working directory approach for go generate command
- Run from root workspace but cd to pkg/server for execution
- Fixes go.mod file not found error in CI workflow
- Fix environment variable binding for SSL mode
- Use correct mapstructure tag name
- Match struct field binding
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Detect which hash command is available
- Fix script compatibility across platforms
- Maintain same functionality
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Use localhost for native execution (PostgreSQL port mapping)
- Use dance-lessons-coach-postgres for Docker container execution
- Set appropriate environment variables for each execution mode
- Fix container-to-container communication
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Remove unnecessary getPostgresHost() function
- Use direct localhost configuration
- PostgreSQL port is mapped to host, so localhost works everywhere
- Simplify code by removing unnecessary abstraction
- Use existing config system properly
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Simplify getPostgresHost() to always use localhost by default
- Use DLC_DATABASE_HOST=localhost for all local execution
- Container name only needed when running INSIDE Docker containers
- Fix native execution PostgreSQL connection issues
- Ensure BDD tests connect to localhost:5432 (mapped port)
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Use docker run --rm instead of docker compose run
- More explicit container cleanup with --rm flag
- Direct volume mounting and network configuration
- Maintain same functionality with cleaner approach
- Better matches CI/CD workflow style
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Add dance-lessons-coach-network to both compose files
- Ensure build-cache and postgres containers can communicate
- Fix container-to-container connectivity
- Maintain same network name for consistency
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>