Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: write the file name without relative path into sha256sum file #15

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

pub(crate) fn sha256sum_file_tag(path: &Path) -> Result<()> {
let mut f = File::create(format!("{}.sha256sum", path.to_string_lossy()))?;
f.write_all(format!("{} *{}", sha256sum_file(path)?, path.to_string_lossy()).as_bytes())?;
f.write_all(format!("{} *{}", sha256sum_file(path)?, path.file_name().to_string_lossy()).as_bytes())?;

Check failure on line 26 in src/network.rs

View workflow job for this annotation

GitHub Actions / build

no method named `to_string_lossy` found for enum `std::option::Option` in the current scope

Check failure on line 26 in src/network.rs

View workflow job for this annotation

GitHub Actions / build

no method named `to_string_lossy` found for enum `std::option::Option` in the current scope

Ok(())
}
Expand Down
Loading