Skip to content

Commit 5ab70e3

Browse files
Hyun Parkclaude
andcommitted
fix: CI 빌드 수정 - sqlx 오프라인 모드 지원
## 변경사항 1. **rustfmt 설정 수정** (.rustfmt.toml) - `fn_args_layout` → `fn_params_layout` (deprecated 워닝 해결) 2. **.gitignore 수정** - `migrations/` 제거 - sqlx::migrate! 매크로가 필요로 함 - `.sqlx/*` 제거 - SQLX_OFFLINE=true 시 쿼리 메타데이터 필요 - 주석 추가로 의도 명확화 3. **sqlx 오프라인 모드 완전 지원** - migrations/ 디렉토리 추가 (24개 마이그레이션 파일) - .sqlx/ 디렉토리 추가 (58개 쿼리 메타데이터) - CI 환경에서 DB 없이 컴파일 가능 ## 근본 원인 - CI 워크플로우는 SQLX_OFFLINE=true 설정되어 있음 - 하지만 migrations와 .sqlx 디렉토리가 .gitignore에 포함되어 누락됨 - sqlx::migrate! 매크로가 컴파일 타임에 파일을 찾지 못해 빌드 실패 ## 영향 - ✅ GitHub Actions CI 빌드 완전 동작 - ✅ rustfmt 워닝 제거 - ✅ 로컬/CI 환경 일관성 확보 Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b660772 commit 5ab70e3

84 files changed

Lines changed: 8460 additions & 4 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,15 @@ Desktop.ini
8888

8989
archives/
9090

91-
# Base Migrations (to be generated as needed)
92-
migrations/
9391
# Generated regression charts
9492
regression_charts/
9593

9694
# Base Data
9795
data/
98-
.sqlx/*
96+
97+
# Note: migrations/ and .sqlx/ must be tracked for sqlx offline mode (CI builds)
98+
# migrations/ - 마이그레이션 파일 (sqlx::migrate! 매크로에서 필요)
99+
# .sqlx/ - 쿼리 메타데이터 캐시 (SQLX_OFFLINE=true 시 필요)
99100
# =====================================================
100101
# Project Specific - Tools & MCP
101102
# =====================================================

.rustfmt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ reorder_imports = true
1313
reorder_modules = true
1414

1515
# 함수/메서드 인자
16-
fn_args_layout = "Tall"
16+
fn_params_layout = "Tall"
1717
fn_single_line = false
1818

1919
# 구조체/열거형

.sqlx/query-04b9b25ff83f2a78fd29a1bd0e2033b84d2f6aa06b1a6f98699bd38ba44f99e8.json

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-0522296b631f9d321a03a2a711e0e6bbba6d26c72821ef1c26946ad1023ea4ec.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-0582587b2320046aa24c23ea63b385f2cbad5c4a21eba9a2f5a9e6fcc4553c7e.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-07f736b357540292def036ef87f1361123c299120137a69c9b66ec90b663415d.json

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-090662a0af885e1a7037897f1b7a88226126d9842115a7b5364f74c217568050.json

Lines changed: 76 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-093912da8c7e56d02983cba04a5c819627ce674c339e21213c7a5b0dd483bb29.json

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-09ac7e162da1f14f48ab57a0a54794b41f03250136689d782d3bf03d85293fda.json

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-174cb42a102565508f94cb6f5877b1ec4e8aec3ad0f6aae027f89515c3a0eed8.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)