Skip to content

Commit 1273f29

Browse files
committed
rust: Treat Cargo.lock files as opaque
Cargo.lock files pin the versions of all transitive dependencies, and are left that way by Cargo unless requested manually (`cargo update`) or necessitated by a change in dependencies (if the manually maintained Cargo.toml says `>0.5.2` and .lock says `0.5.1`, the latter is reset). They are fixed (as opposed to .gitignoring them and letting each user autogenerate them) to ensure that third party changes do not break RIOT CI builds; for updates, the changes from a `cargo update` can still be committed and then run through CI checks. (This is analogous to how pkg versions are pinned). They are set to binary because their diffs are usually not practical to read.
1 parent 732c369 commit 1273f29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*.a binary
22
*.patch binary
3+
Cargo.lock binary
34
# Default conflict marker size is 7 which causes some of the headings in
45
# release-notes.txt to trigger git diff --check: 'leftover conflict marker'
56
# when the heading is exactly 7 characters long.

0 commit comments

Comments
 (0)