Skip to content

Commit 934ea56

Browse files
pietroalbiniMark-Simulacrum
authored andcommitted
add the new manifest at the bottom of the file
1 parent 9f2d5cf commit 934ea56

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ mod sign;
1212
mod smoke_test;
1313

1414
use std::fs::{self, File, OpenOptions};
15-
use std::io::{Read, Write};
15+
use std::io::{Read, Seek, SeekFrom, Write};
1616
use std::path::{Path, PathBuf};
1717
use std::process::{Command, Output, Stdio};
1818
use std::time::Duration;
@@ -712,6 +712,9 @@ impl Context {
712712
Err(_) => ("--if-none-match", "*".to_string()),
713713
};
714714

715+
// Append the new item at the end of the manifest.
716+
manifest.seek(SeekFrom::End(0))?;
717+
715718
let upload_addr = self
716719
.config
717720
.upload_addr

0 commit comments

Comments
 (0)