-
Notifications
You must be signed in to change notification settings - Fork 0
docs(documents): 의존성 관리 구조 문서화 (#8) #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
The head ref may contain hidden characters: "documentation/8-\uC758\uC874\uC131-\uB4F1\uB85D-\uACFC\uC815-\uBB38\uC11C\uD654"
Closed
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| 우리 프로젝트에서 모든 공통 의존성 등록의 진입점은 MODULE.bazel이며, 프로젝트 규모 확장에 따른 유지보수 효율성을 위해 다음과 같은 원칙을 따른다. | ||
|
|
||
| ## 1. 의존성 관리 구조 | ||
|
|
||
| ### 1.1 MODULE.bazel | ||
|
|
||
| - 프로젝트 루트의 MODULE.bazel은 외부 모듈 버전 및 의존성을 관리하는 진입점이다. | ||
| - Bazel 정책상 MODULE.bazel 파일은 분할이 불가능하므로, 파일이 비대해지는 것을 방지하기 위해 Module Extensions을 활용한다. | ||
|
|
||
| ### 1.2 Module Extensions | ||
|
|
||
| 언어별로 관리 효율을 높이기 위해 별도의 .bzl 파일에 정의를 위임하고, MODULE.bazel에서 이를 호출한다. | ||
|
|
||
| - Go 의존성: go.mod 파일과 rules_go의 go_deps 확장을 연동하여 관리한다 | ||
| - Kotlin/Maven 의존성: rulese_jvm_external을 사용하여 Maven 아티팩트를 관리하며, 별도의 .bzl 파일에 아티팩트 리스트를 정의하여 가독성을 확보한다 | ||
|
|
||
| ## 2. 서비스별 디펜던시 참조 및 최적화 | ||
|
|
||
| ### 2.1 불필요한 의존성 전파 방지 | ||
|
|
||
| 전체 의존성 풀에 특정 라이브러리가 등록되어 있더라도, 개별 서비스가 이를 강제로 참조하지 않는다. | ||
|
|
||
| ### 2.2 서비스별 BUILD.bazel 활용 | ||
|
|
||
| 각 서비스 디렉토리 내의 BUILD.bazel 파일에서 해당 서비스가 실제로 필요한 디펜던시만 deps 항목에 명시한다. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
996e016
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
문서 수정했습니다. 커밋 메세지 앞글자를 O -> o로 수정해야 하는데 지금 제 노트북에서 cli 명령이 안먹혀서 내일까지 커밋 메세지 바꿔서 린트 통과시키겠습니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@1210thatman 언제 해결해주시나요? 해결하고 review-reqeust 다시 눌러주세요!