extenddb version prints the first build's commit after a rebuild in the same target directory
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 70/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- build-system
調査の方向性
crates/bin/build.rsから始め、Cargoの再ビルド指示をどのように出力するかを調べてください。git rev-parse --git-dirがworktree内も含め、Gitディレクトリをどのように識別するかを確認してください。コミット後、同じターゲットディレクトリで再ビルドし、extenddb versionを確認してください。worktreeの場合も含め、現在のコミットとビルド時刻が報告されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
crates/bin/build.rs bakes the commit hash and the build time into the binary, and tells cargo to run it again only when EXTENDDB_GIT_HASH or EXTENDDB_BUILD_TIME changes (cargo:rerun-if-env-changed). A later build in the same target directory recompiles the crates that changed and links a new binary, but does not run the build script again, so extenddb version still prints the commit and time of the first build there.
Seen on 30 October: a release binary rebuilt in the same target directory after three commits printed the commit it was first built at, with the old build time.
Setting EXTENDDB_GIT_HASH for each build works around it. A fix is to also emit cargo:rerun-if-changed for the git HEAD file and the ref it points to, found through git rev-parse --git-dir so that a worktree works too.
- 主要言語
- Rust
- スター
- 517
- フォーク
- 60
- 平均マージ
- 4日 22時間
- マージ済み PR(30日)
- 40
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ExtendDB/extenddb のほかの issue
-
Launch-prep: scope statement + backend tiers + version policy対応中かも @navareamol が今日担当しました。 オープン
難易度 2/5 3〜5日 初心者へのやさしさ 65/100
ExtendDB/extenddb#662 · 担当者 1 名 ·
メンテナーはふだん 4 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
ExtendDB/extenddb#658 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
backend:postgresql bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 4 日以内に返信
-
backend:mongodb bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 4 日以内に返信
ExtendDB/extenddb の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
calcit-lang/caps#16 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
penso/herdr-gpui#934 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Y-ASLant/ElegantClipboard#178 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
linxiv-dev/linXiv#384 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
priority middle
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
KATO-Hiro/AtCoderClans#12945 ·
メンテナーはふだん 1 日以内に返信