古い bitclust が使われている場合に rake が案内を出すようにする#3055
Merged
Merged
Conversation
doctree の Gemfile は BITCLUST_PATH (既定値 ../bitclust) にディレクトリが 存在するとそちらの bitclust を優先する。過去に clone した古いチェック アウトが残っていると、rake generate が `cannot load such file -- drb` (Ruby 3.4 の bundled gems 化) や `invalid option: --markdowntree` (Markdown 移行前) といった分かりにくい エラーで失敗する。 generate / statichtml の前に bitclust のバージョンを検査し、1.5.0 未満 なら原因 (使用中の bitclust のパス) と対処を示して中断する。 fix rurema/bitclust#230 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
チュートリアルどおりに進めても、(1) 以前の fork の master が古いまま、 (2) 過去に clone した古い bitclust が隣のディレクトリに残っている、の いずれかで分かりにくいエラーになる (rurema/bitclust#230)。 - fork の項に「Sync fork」で最新化してから進む手順を追加 - bundle install の項に、Gemfile が BITCLUST_PATH (既定値 ../bitclust) を 優先する仕組みと、古い場合の症状・対処を追加 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
DB 不要サブコマンドの回帰修正とバージョン 1.5.0 (rurema/bitclust#233) を含む master に更新する。Rakefile のバージョンガード (>= 1.5.0) は このピンで通る。 この環境は git fetch 不可のため bundle lock ではなく手で更新した (変更点は revision と 1.4.0 → 1.5.0 のみで、rurema#233 は依存を変えていない)。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
fix rurema/bitclust#230
チュートリアルどおりに進めても、過去に clone した古い bitclust が隣のディレクトリ(
BITCLUST_PATH、既定値../bitclust)に残っていると Gemfile がそれを優先し、cannot load such file -- drb(Ruby 3.4 の bundled gems 化)やinvalid option: --markdowntree(Markdown 移行前)といった分かりにくいエラーでビルドに失敗します(rurema/bitclust#230 の原因)。generate/statichtmlの前に bitclust のバージョンを検査し、1.5.0 未満なら使用中の bitclust のパスと対処(git pull/ 削除 /BITCLUST_PATH)を表示して中断する。閾値はGem::Versionで比較../bitclustが残っている場合の症状と対処」を追記247aa751にバンプ済み。ガードはこのピンで通ります検証
rake generate:3.4→ 案内メッセージで exit 1rake generate:3.4が最後まで成功bundle lockと同結果。Bundler::LockfileParserでのパースは確認済み)🤖 Generated with Claude Code