Skip to content

Commit

Permalink
Avoid altering signature for .cargo/vendor files
Browse files Browse the repository at this point in the history
When using the content of the `clamav` tarball in a git repository to version a debian or RedHat package for example.
We should never alter the files from cargo or this result in corrupted signature and thus we cannot install the files.

As the repo provides its own `.gitattributes` we cannot easily overwrite it without manually updating `.git/info/attributes`.

Alternatively we could remove the `.gitattributes` file from the tarball when generating it.
  • Loading branch information
atoomic authored and val-ms committed Mar 9, 2023
1 parent 719a8b2 commit 3710689
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
# Files that should be left untouched (binary is macro for -text -diff)
*.ref binary

# Preserve signature for .cargo/vendor files (from the tarabll)
+/.cargo/vendor binary

#
# Exclude files from exporting
#
Expand Down

0 comments on commit 3710689

Please sign in to comment.