Commit 4f8934e
committed
Add Cargo.lock to version control
Historically the official recommendation was to version control
Cargo.lock for applications but gitignore it for libraries.
However, it was later recognized that this is a mistake, and there
are advantages to always version control Cargo.lock, even for libraries:
https://blog.rust-lang.org/2023/08/29/committing-lockfiles/
As a specific example, not having Cargo.lock under version control
caused me a minor annoyance when regenerating expected trybuild output
(b6a3b08)
The file I generated locally didn't match what was happening on GitHub
Actions runner, because my Cargo.lock was different.1 parent 334b006 commit 4f8934e
2 files changed
+2381
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 6 | | |
11 | 7 | | |
12 | 8 | | |
| |||
0 commit comments