# =============================================================================
# Section 1: Global rules (IDE, OS, logs, env/secrets)
# =============================================================================

# IDE
.idea/
*.iml
*.ipr
*.iws
.vscode/
*.swp
*.swo
*~

# OS
.DS_Store
Thumbs.db

# Logs
*.log
logs/

# Environment files / secrets / licenses
.env
.env.local
*.env
.ecr_token
*.token
*.platformtoken
test-workspace.id
test-client-secret
*.lic
*.license

# =============================================================================
# Section 2: Go services (api-server, workload-manager)
# =============================================================================

# Go binaries
*.exe
*.exe~
*.dll
*.so
*.dylib
*.test
*.out

# Go dependency directories
api-server/vendor/
workload-manager/vendor/

# Generated proto stubs and service binaries
proto/gen/*
api-server/gen/*
api-server/bin/*
api-server/server
workload-manager/bin/*
workload-manager/manager
workers/worker-blob/bin/
workers/worker-snowflake/bin/
workers/worker-url/bin/
workers/worker-postgresql/bin/

# Python cache (used in api-server scripting/tooling)
__pycache__/
*.pyc
*.pyo

# =============================================================================
# Section 3: Java / Gradle
# =============================================================================

# Gradle build output (global — no committed build/ dirs)
.gradle/
build/
!**/gradle/wrapper/gradle-wrapper.jar

# Generated proto sources (populated at build time, never committed)
workers/worker-postgresql/src/main/proto/*.proto
workers/worker-postgresql/src/main/proto/google/
workers/worker-postgresql/local.properties
wrappers/wrapper-spark/src/main/proto/
wrappers/wrapper-jdbc/src/main/proto/

# Legacy (kept for safety)
src/main/java/com/example/backend/proto/

# =============================================================================
# Section 4: Rust
# =============================================================================

wrappers/wrapper-rust/target/
wrappers/wrapper-rust/src/gen/
workers/worker-delta/target/
prototypes/delta-table-rs/target/
prototypes/delta-table-rs/**/*.rs.bk

# =============================================================================
# Section 5: Python
# =============================================================================

python-client/connector-service/src/h2o_connector_service/gen/

# Python build artifacts
*.py[cod]
*.egg-info/
dist/

# Virtual environments
.venv/
venv/

# =============================================================================
# Section 6: Helm
# =============================================================================

# Umbrella chart — cloned from h2oai/umbrella-chart at UMBRELLA_CHART_BRANCH via `make helm-deps`
helm/h2oai-chart/

# =============================================================================
# Section 7: Data / misc
# =============================================================================

datasources/**/*.zip
prototypes/*/bin/
tests/helpers/ccdb/
test-run.log

.claude/

