Default CodeQL action uses Ubuntu Jammy, which has a very old version of Meson

Aperta
#2,875 2 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
github-actions

Direzione di ricerca

Inizia tracciando la configurazione predefinita di CodeQL Autobuild che seleziona Ubuntu 22.04 e verificando il requisito di versione riportato in meson.build. Riproduci il fallimento con l’esempio gamemode, quindi verifica che l’ambiente selezionato fornisca Meson 1.3.1 o una versione successiva e che Autobuild venga completato correttamente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

question

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:

  1. Install the latest meson from pip and use that.
  2. Update the action to run on Ubuntu 24.04.
Lingua principale
TypeScript
Stelle
1.6k
Fork
493
Merge medio
1g 13h
PR unite (30g)
44

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/codeql-action

Tutte le issue di github/codeql-action

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.