chore(deps): ignore FontAwesome major updates until Docsy supports them - #303
Merged
Conversation
FontAwesome 7은 SCSS를 Dart Sass 모듈 문법으로 다시 쓰면서 개별 $fa-var-* 변수를 $icons 맵으로 대체했다. Hugo의 libsass가 이 문법을 컴파일하지 못하고, Docsy 0.16.0은 그 변수들을 직접 참조하므로 의존성을 7로 올리면 사이트 빌드가 실패한다. Docsy 자신도 6.7.2를 고정하고 있다. Docsy가 FontAwesome 7을 지원하면 이 무시 규칙을 지운다.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
FontAwesome의 메이저 버전 업데이트를 Dependabot 대상에서 제외합니다.
배경
Dependabot이 올린 #294(6.7.2 → 7.3.1)를 검증한 결과, 머지하면 사이트 빌드가 실패합니다. PR 브랜치에 master를 합쳐 실제 머지 결과와 같은 상태로 빌드해 확인했습니다.
원인은 두 가지입니다.
FontAwesome 7이 SCSS를 Dart Sass 모듈 문법으로 다시 썼습니다.
@use "sass:string"과--#{v.\$css-prefix}-family같은 커스텀 속성 보간을 쓰는데, Hugo가 SCSS 변환에 사용하는 libsass는 이 문법을 처리하지 못합니다.그리고 개별 아이콘 변수가 없어졌습니다. FontAwesome 6의
_variables.scss에 있던\$fa-var-xmark,\$fa-var-search등이 7에는 하나도 없고\$icons맵으로 대체됐습니다. Docsy 0.16.0은 이 변수들을 직접 참조합니다. Docsy 자신도package.json에서@fortawesome/fontawesome-free를 6.7.2로 고정하고 있습니다.변경 내용
npm 생태계 설정에
ignore항목을 추가해@fortawesome/fontawesome-free의 메이저 업데이트만 제외했습니다. 패치와 마이너 업데이트는 그대로 추적합니다.Docsy가 FontAwesome 7을 지원하는 버전으로 올라가면 이 규칙을 지우고 다시 올립니다. 그 조건을 설정 파일 주석에 남겨 두었습니다.
#294는 이 이유로 닫습니다.