Dependency Lockfile Drift とは何か?
dependency lockfile drift とは、プロジェクトの lockfile が依存関係の manifest や実際にインストールされるものと同期しなくなっている状態です。これは、誰かが lock を再生成せずに manifest を編集したり、install が pin を静かに更新したりしたときに発生します。その結果、異なるマシンが異なるバージョンを解決してしまいます。
なぜ重要か
lockfile は install を決定論的にするために存在しますが、drift はそれを台無しにし、典型的な works-on-my-machine の失敗を生みます。CI は一般に、lockfile が変わる場合に失敗する frozen install を実行することでこれを防ぎます。CI で drift を捕捉することで、すべての runner がまったく同じ依存関係ツリーを解決し続けます。
関連ガイド
What Is a Transitive Pin?A transitive pin fixes the version of an indirect dependency, one pulled in by another package rather than de…
What Are Vendored Dependencies?Vendored dependencies are third-party packages committed directly into a project's repository so builds do no…
What Is a Version Range?A version range is a constraint that allows a set of acceptable dependency versions rather than a single exac…