디스코urs에서 린팅 디버깅

이 기능이 정상 작동할 때는 정말 멋졌어요.

현재 WSL2에서 main 브랜치의 최신 버전으로 이 오류의 변형이 발생하고 있습니다.

커밋을 할 수 없게 되었습니다:

robert@blah:~/discourse$ git commit -m "fix test setup"
/home/robert/discourse/node_modules/lefthook-linux-x64/bin/lefthook: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/robert/discourse/node_modules/lefthook-linux-x64/bin/lefthook)
/home/robert/discourse/node_modules/lefthook-linux-x64/bin/lefthook: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/robert/discourse/node_modules/lefthook-linux-x64/bin/lefthook)

혹시 아이디어가 있으신가요?

lefthook에 대한 dependabot 업데이트가 불과 8시간 전에 있었던 것 같습니다.

package.json을 한 단계 낮추는 해킹을 해야 할지도 모르겠네요?

lefthook을 1.6.9(!)로 되돌리고 yarn을 실행해서 다시 작동하게 만들었습니다.

지금 코어와 동기화가 안 되어 있어서 더 나은 방법이 있다면 제안해 주시면 감사하겠습니다.

Version 1.7.6 fails installation on CI · Issue #783 · evilmartians/lefthook · GitHub 문제와 유사해 보입니다.

그들이 문제를 해결할 때까지 업데이트를 되돌려 두겠습니다.

데이비드, 제임미(도저)로 로컬 업그레이드를 진행해 볼게요… 도움이 될지 확인해 보겠습니다.

이것이 핵심입니다 … 이전에 사용하던 이전 버전의 Ubuntu에서 최신 버전은 GLIBC_2.31이었던 것으로 기억합니다.

libc6 패키지를 업데이트하면 해당 버전까지 올라갔으므로, 주요 릴리스 업그레이드가 필요한 것 같습니다.

16코어가 그 작업을 처리하는 대로 곧 되돌리겠습니다.

해당 GitHub 이슈에 따르면, 공유 라이브러리에 대한 의존도는 의도된 것이 아닙니다. 작동하게 만들 수 있더라도 다른 사용자들은 문제를 겪을 가능성이 높습니다. 그래서 이렇게 해보겠습니다:

Revert "Build(deps-dev): Bump lefthook from 1.7.5 to 1.7.7 (#28068)" … · discourse/discourse@1b7a583 · GitHub :fire:

음, 이렇게 하면 해결됩니다 (1.7.7 사용!):

robert@blah:~/discourse$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:        22.04
Codename:       jammy

(@JammyDodger )

:rocket:

robert@blah:~/discourse$ yarn list --pattern lefthook
yarn list v1.22.19
warning Resolution field "unset-value@2.0.1" is incompatible with requested version "unset-value@^1.0.0"
├─ lefthook-darwin-arm64@1.7.7
├─ lefthook-darwin-x64@1.7.7
├─ lefthook-freebsd-arm64@1.7.7
├─ lefthook-freebsd-x64@1.7.7
├─ lefthook-linux-arm64@1.7.7
├─ lefthook-linux-x64@1.7.7
├─ lefthook-windows-arm64@1.7.7
├─ lefthook-windows-x64@1.7.7
└─ lefthook@1.7.7
Done in 0.53s
robert@blah:~/discourse$ git status
On branch test_branch
Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        new file:   mytestfile

robert@blah:~/discourse$ git commit -m "test file addition"
│  ember-template-lint (skip) no files for inspection
│  yaml-syntax (skip) no files for inspection
│  i18n-lint (skip) no files for inspection
│  rubocop (skip) no files for inspection
│  eslint (skip) no files for inspection
│  prettier (skip) no files for inspection
│  prettier-scss (skip) no files for inspection
│  syntax_tree (skip) no files for inspection

  ────────────────────────────────────
summary: (done in 0.06 seconds)
[test_branch 1cd0bb3839] test file addition
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 mytestfile