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 committed Mar 8, 2023
1 parent ebe59ef commit 4a62873
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 4a62873

Please sign in to comment.