Skip to content

Commit 67574cc

Browse files
committed
Don't include directory names in shasums
Right now we just run `shasum` on an absolute path but right now the shasum files only include filenames, so let's use `current_dir` and just the file name to only have the file name emitted.
1 parent 10f6a5c commit 67574cc

File tree

1 file changed

+2
-1
lines changed
  • src/tools/build-manifest/src

1 file changed

+2
-1
lines changed

src/tools/build-manifest/src/main.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ impl Builder {
350350
fn hash(&self, path: &Path) -> String {
351351
let sha = t!(Command::new("shasum")
352352
.arg("-a").arg("256")
353-
.arg(path)
353+
.arg(path.file_name().unwrap())
354+
.current_dir(path.parent().unwrap())
354355
.output());
355356
assert!(sha.status.success());
356357

0 commit comments

Comments
 (0)