CI "minimum" leg builds with go1.26.11, so the go 1.26.0 floor is untested
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 62/100
调研方向
从 .github/workflows/go.yml 开始,其中 build (minimum) 任务使用 actions/setup-go 并设置 go-version-file: 'go.mod',这会安装 toolchain 行(go1.26.11),而不是 go.mod 中 go 1.26.0 指令所指定的版本。你可以将 go 指令的版本以 go-version 形式传给 setup-go(通过 sed 步骤读取),也可以修改注释和任务名称,说明它测试的是 toolchain 行。当该任务的日志显示指令版本,或注释与实际测试内容一致,并且在 .github/dependabot.yml 中 lipgloss 忽略规则旁记录了 1.26.0 下限的决定时,即为完成。
由索引模型根据 Issue 内容生成。
描述
Summary
The CI leg that claims to prove the go.mod floor installs the toolchain version instead, so nothing builds or tests with Go 1.26.0, the version that also holds back a dependency upgrade.
Where
.github/workflows/go.yml:11.github/workflows/go.yml:28go.mod:3go.mod:5.github/dependabot.yml:15
Details
go.yml:11-13 says "minimum" proves the go.mod floor (1.26.0) still builds and passes, and the leg uses actions/setup-go with go-version-file: 'go.mod' (go.yml:28-33). go.mod has go 1.26.0 (line 3) and toolchain go1.26.11 (line 5); setup-go takes the toolchain line. The log of job build (minimum) in run 43648865601 (head d0c56f0) reads Setup go version spec 1.26.11, Successfully set up Go version 1.26.11, go version go1.26.11 linux/amd64, with GOTOOLCHAIN: local. No other job installs 1.26.0 (the rest use stable, which was go1.27.4, or the same go.mod file).
Impact
No CI job has built or tested the code with Go 1.26.0 since the toolchain directive was added (#243). The floor is what keeps lipgloss on v2.0.x (dependabot.yml:15-19 ignores >= 2.1.0 because it needs go 1.26.7; docs/DEVELOPER_GUIDE.md:340-341 repeats the rule), so an available upgrade is held back for a minimum that nothing verifies. A user who builds with GOTOOLCHAIN=local on 1.26.0 to 1.26.10 is on an untested path. The "Check go directive" step only compares the text of the line.
Steps to reproduce
gh api repos/TMHSDigital/subenum/actions/jobs/132612623946/logs, then search for Setup go version spec.
Suggested fix
Make the leg install the go line's version: read it in a step (sed -n 's/^go //p' go.mod) and pass it to setup-go as go-version (setup-go already sets GOTOOLCHAIN=local, so 1.26.0 is then what compiles). Or, if 1.26.0 is not really meant to be supported, say in the comment that the leg tests the toolchain line, raise the go directive on purpose, and drop the lipgloss ignore.
Notes
Related: #243 (added the toolchain directive).
Acceptance criteria
- The leg's log shows the version of the
godirective, or the comment and leg name say it tests the toolchain line - The decision about the 1.26.0 floor is written down next to the Dependabot ignore rule
Getting started
- Relevant files:
.github/workflows/go.yml,go.mod,.github/dependabot.yml - How to run tests:
make test(orgo test ./...). Tests must stay hermetic: use-simulate,-simulate-zoneor the local DNS test server, never a live domain. - Related docs:
docs/DEVELOPER_GUIDE.md,docs/ARCHITECTURE.md
Filed by repo-audit/full-audit at d0c56f0. Severity: low. Effort: S. audit-key: ci|.github/workflows/go.yml|build.minimum.go-version-file
- 主要语言
- Go
- 星标
- 1
- 派生
- 1
- 平均合并
- 6 小时 42 分钟
- 30 天内合并 PR
- 7
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
TMHSDigital/subenum 的其他 Issue
-
good first issue severity: low tech-debt
难度 2/5 半天 新手友好度 75/100
TMHSDigital/subenum#329 ·
维护者通常 1 天内回复
-
area: docs documentation good first issue severity: low
难度 2/5 1-3 小时 新手友好度 85/100
TMHSDigital/subenum#327 ·
维护者通常 1 天内回复
-
area: release dependencies good first issue severity: low
难度 2/5 1-3 小时 新手友好度 66/100
TMHSDigital/subenum#324 ·
维护者通常 1 天内回复
-
area: output bug good first issue severity: low
难度 2/5 1-3 小时 新手友好度 76/100
TMHSDigital/subenum#319 ·
维护者通常 1 天内回复
-
community documentation good first issue
难度 2/5 1-3 小时 新手友好度 85/100
TMHSDigital/subenum#135 ·
维护者通常 1 天内回复
查看 TMHSDigital/subenum 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
GillMacedo/godebugdiff#13 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
GillMacedo/racesift#14 ·
-
IsTextFile reads the whole file into memory (OOM on large files in the file watcher)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
gtsteffaniak/filebrowser#3395 ·
维护者通常 1 天内回复
-
effort:s impact:low raised-by:worker risk:low
难度 1/5 1 小时以内 新手友好度 70/100
medici-finance/assay#6496 · 1 条评论 ·
维护者通常 1 天内回复
-
kind/bug require/reproduce require/severity
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复