nanoda: module-name detection fails for lakefile.toml with top-level name key (no [package] section)

オープン 初心者向け
#205 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github-actions, shell
領域
ci-cd, tooling

調査の方向性

まず run_nanoda.sh を読み、lakefile.toml からモジュール名を抽出するコードを見つけてください。トップレベルに name キーがあり、[package] セクションがない lakefile で失敗を再現してください。その形式も検出できるように更新し、action が RequestProject を検出することを確認してください。

索引モデルが issue の本文から書いたものです。

説明

Summary

run_nanoda.sh (v1.7.x) detects the module name via:

MODULE_NAME=$(grep -A5 '^\[package\]' lakefile.toml | grep '^name' | ...)

Projects using a valid TOML lakefile with a top-level name = "..." key (which Lake accepts and builds fine) get:

##[error]Could not detect module name from lakefile.toml or lakefile.lean

Reproduction

Any Lake TOML project of the form:

name = "RequestProject"
defaultTargets = ["RequestProject"]

[[require]]
name = "mathlib"
git = "https://github.com/leanprover-community/mathlib4.git"
rev = "v4.28.0"

with nanoda: true in leanprover/[email protected].

Example failing run: https://github.com/rtynbirf/polymath-stckg-core/actions/runs/42719260235 (job log: Could not detect module name from lakefile.toml or lakefile.lean)

Suggested fix

Also match the top-level name key before falling back to the [package] section, e.g. try grep -m1 -E '^name[[:space:]]*=' lakefile.toml first.

Workaround we use

Run nanoda with continue-on-error: true (experimental lane) until this is fixed; the hard independent gates (leanchecker, axiom-audit) run earlier and are unaffected.

主要言語
Shell
スター
51
フォーク
22
平均マージ
1日 14時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

leanprover/lean-action のほかの issue

leanprover/lean-action の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。