Default CodeQL action uses Ubuntu Jammy, which has a very old version of Meson
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- github-actions
- 领域
- build-system, ci-cd
调研方向
首先跟踪选择 Ubuntu 22.04 的默认 CodeQL Autobuild 配置,并检查 meson.build 中报告的版本要求。使用 gamemode 示例重现失败,然后验证所选环境提供 Meson 1.3.1 或更高版本,并且 Autobuild 能够成功完成。
由索引模型根据 Issue 内容生成。
描述
I'm targeting a project that is more interested in leading-edge distros than most (https://github.com/a5ehren/gamemode/tree/master) and have restricted the minimum Meson version to 1.3.1 in order to clean out a bunch of deprecated code - but the stock CodeQL Autobuild action uses Ubuntu 22.04 and installs Meson from the repos, which is version 0.61.2 which is 4+ years old.
[2025-04-30 14:01:19] [build-stdout] unzip is already the newest version (6.0-26ubuntu3.2).
[2025-04-30 14:01:19] [build-stdout] 0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
[2025-04-30 14:01:19] [build-stderr] cpp/autobuilder: using built-in deptrace DB
[2025-04-30 14:01:20] [build-stderr] cpp/autobuilder: launched deptrace server
[2025-04-30 14:01:20] [build-stderr] cpp/autobuilder: Using build system found in '.'
[2025-04-30 14:01:20] [build-stderr] cpp/autobuilder: trying to run meson .. [current dir: /home/runner/work/gamemode/gamemode/_codeql_build_dir]
[2025-04-30 14:01:25] [build-stdout] The Meson build system
[2025-04-30 14:01:25] [build-stdout] Version: 0.61.2
[2025-04-30 14:01:25] [build-stdout] Source dir: /home/runner/work/gamemode/gamemode
[2025-04-30 14:01:25] [build-stdout] Build dir: /home/runner/work/gamemode/gamemode/_codeql_build_dir
[2025-04-30 14:01:25] [build-stdout] Build type: native build
[2025-04-30 14:01:25] [build-stdout] ../meson.build:1:0: ERROR: Meson version is 0.61.2 but project requires >= 1.3.1
The fix here is to either:
- Install the latest meson from pip and use that.
- Update the action to run on Ubuntu 24.04.
- 主要语言
- TypeScript
- 星标
- 1.6k
- 派生
- 493
- 平均合并
- 1 天 13 小时
- 30 天内合并 PR
- 44
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/codeql-action 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
github/codeql-action#4052 · 4 条评论 ·
-
难度 4/5 3-5 天 新手友好度 45/100
github/codeql-action#4078 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 48/100
github/codeql-action#4008 · 9 条评论 ·
-
难度 4/5 3-5 天 新手友好度 52/100
github/codeql-action#3978 · 4 条评论 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 48/100
github/codeql-action#3915 · 6 条评论 · 3 个 reaction ·
查看 github/codeql-action 的全部 Issue
相似的 Issue
-
clawsweeper:linked-pr-open clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:message-loss issue-rating: 🦞 diamond lobster maturity:stable P2
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 84/100
Eynzof/Hermes-CN-Desktop#616 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
supermomonga/zcode-acp#24 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
growthbook/growthbook#7100 ·
-
triage
难度 1/5 1-3 小时 新手友好度 88/100