We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07b8fc3 commit 13a8c20Copy full SHA for 13a8c20
1 file changed
magic-nix-cache/src/gha.rs
@@ -157,6 +157,15 @@ async fn upload_path(
157
// Upload the NAR.
158
let nar_path = format!("{}.nar.zstd", path_info.nar_hash.to_base32());
159
160
+ if path_info.nar_size < 5000 {
161
+ tracing::debug!(
162
+ "Skipping small file '{}' ({}b)",
163
+ nar_path,
164
+ path_info.nar_size
165
+ );
166
+ return Ok(());
167
+ }
168
+
169
let nar_allocation = api.allocate_file_with_random_suffix(&nar_path).await?;
170
171
let nar_stream = store.nar_from_path(path.clone());
0 commit comments