Follow-up: Add gitignore to dist directory (#7840)

This commit is contained in:
konsti 2024-10-01 15:38:37 +02:00 committed by GitHub
parent e4d7f33072
commit 8177974439
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -210,6 +210,9 @@ pub fn files_for_publishing(
let Some(filename) = dist.file_name().and_then(|filename| filename.to_str()) else {
continue;
};
if filename == ".gitignore" {
continue;
}
let filename = DistFilename::try_from_normalized_filename(filename)
.ok_or_else(|| PublishError::InvalidFilename(dist.clone()))?;
files.push((dist, filename));