Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
CI の linter を datapack-linter(DHP 3.4.19)から mcf-linter-spark v0.1.1 に替えた。宣言の生成(
make-declares-mcf.mts)は、spark が同じ形で書き出す.cache/dls.jsonを読むので変えていない。主な変更
lint の step の中身とナレッジの説明だけを替え、job 名
lint・workflow 名・ファイル名と宣言の生成の手順はそのまま残した。lintで検査を続けるよう、workflow の lint の step をmcf-linter-spark checkに替えた--symbols .cache/dls.jsonを書き出すactions/cacheで残すcore:define_gameruleの除外を外したdocs/knowledge/ci-and-generation.mdの linter と除外の記述を直した設計判断
spark の入れ方と、lint の設定の扱いを決めた。
cargo install --gitで EllaCoat/mcf-linter-spark の tagv0.1.1を入れる.vscode/settings.jsonのdatapack.lint.*を DHP と同じ意味で読むので、設定は変えていない動作確認
手元の検査と、この branch の push の CI が通った。
v0.1.1で入れた spark で、この branch の push のlint通過(spark のビルド 52 秒、検査 1 秒、宣言の生成も成功)未対応・注意
merge の前に要る作業は無い。merge の後は検査の範囲と、Asset へ push する宣言ファイルの並び順が変わり、#2307 とは衝突する。
lintにも出るdeclares.d.mcfunctionが並び順だけ変わって push される[regenerate cache]は残した(Asset は 👷 CI の linter を datapack-linter から mcf-linter-spark に替える Asset#2218 で付け替える)datapack-linter.ymlを変えていて衝突するので、✨ 文字幅計算Libを追加 #2307 の除外の指定を spark の--ignoreに移す必要がある