From c7aff0f4f019a6f1dae0324b76a693167721c2d0 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Thu, 12 Nov 2026 01:17:11 +0900 Subject: [PATCH] =?UTF-8?q?ci(links):=20lychee-action=EC=9D=84=20v2.9.0?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EC=98=AC=EB=A0=A4=20--root-dir=EC=9D=84?= =?UTF-8?q?=20=EC=9D=BD=EA=B2=8C=20=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제: main의 links job이 run 52·63·79 모두 `lychee: unexpected argument '--root-dir'`로 실패한다. 고정한 lychee-action v2.0.2는 lychee v0.16.1을 받는데, 그 버전에는 --root-dir이 없다. 상대 경로 --root-dir은 lychee v0.22.0부터 읽는다. 고른 방법: action을 v2.9.0(lychee v0.24.2, 2026-07-09)의 커밋 SHA로 올린다. Gitea의 job token은 lychee가 보낼 GitHub 쪽에서 의미가 없어 token을 비우고, Gitea에 없는 job summary를 끈다. DeveloperExperienceContractTest가 고정한 SHA를 함께 바꾼다. 버린 대안: v2.0.2에 lycheeVersion만 새로 주기. v2.0.2의 내려받기 경로는 lychee 0.16 이전의 자산 이름을 쓴다. 위험·한계: 새 lychee가 전보다 많은 외부 링크를 깨졌다고 볼 수 있다. 그러면 링크를 고치거나 .lycheeignore에 이유와 함께 넣는다. 검증: runner main 수동 실행의 links job(이 PR 본문에 적는다). --- .gitea/workflows/main.yml | 7 ++++++- .../contract/DeveloperExperienceContractTest.java | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index fe9319f8..6b668b46 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -84,9 +84,14 @@ jobs: timeout-minutes: 15 steps: - uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # actions/checkout@v4.2.2 + # v2.9.0 runs lychee v0.24.2. v2.0.2 ran v0.16.1, which has no --root-dir at all; a relative + # --root-dir works from lychee v0.22.0. The job token is this Gitea's and means nothing to the + # GitHub hosts lychee would send it to, so none is passed, and Gitea has no job summary page. - name: Check committed documentation links - uses: https://github.com/lycheeverse/lychee-action@7cd0af4c74a61395d455af97419279d86aafaede # lycheeverse/lychee-action@v2.0.2 + uses: https://github.com/lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # lycheeverse/lychee-action@v2.9.0 with: + token: "" + jobSummary: false args: >- --no-progress --root-dir . diff --git a/src/bootstrap/app/src/test/java/dev/caskeleton/bootstrap/contract/DeveloperExperienceContractTest.java b/src/bootstrap/app/src/test/java/dev/caskeleton/bootstrap/contract/DeveloperExperienceContractTest.java index 67c5b4eb..92dda415 100644 --- a/src/bootstrap/app/src/test/java/dev/caskeleton/bootstrap/contract/DeveloperExperienceContractTest.java +++ b/src/bootstrap/app/src/test/java/dev/caskeleton/bootstrap/contract/DeveloperExperienceContractTest.java @@ -170,7 +170,7 @@ class DeveloperExperienceContractTest { .as("a conditional link check is one nobody sees run") .isFalse(); assertThat(String.valueOf(lycheeStep.get("uses"))) - .endsWith("lycheeverse/lychee-action@7cd0af4c74a61395d455af97419279d86aafaede"); + .endsWith("lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8"); Map with = requireMap(lycheeStep, "with"); assertThat(with.get("fail")).isEqualTo(true); assertThat(shellWords(requireString(with, "args")))