Default CodeQL action uses Ubuntu Jammy, which has a very old version of Meson
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- github-actions
- Domain
- build-system, ci-cd
Research direction
Start by tracing the default CodeQL Autobuild configuration that selects Ubuntu 22.04 and reviewing the reported meson.build version requirement. Reproduce the failure with the gamemode example, then verify that the selected environment provides Meson 1.3.1 or newer and that Autobuild completes successfully.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- TypeScript
- Stars
- 1.6k
- Forks
- 493
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 44
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/codeql-action
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/codeql-action#4052 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
github/codeql-action#4078 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
github/codeql-action#4008 · 9 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
github/codeql-action#3978 · 4 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
github/codeql-action#3915 · 6 comments · 3 reactions ·
All issues in github/codeql-action
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
dennys-bd/agent-hive#184 ·
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
ai-observability bug team/ai-observability
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vicharanashala/fln#563 ·