Skip to content

Commit 42b26e6

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 3d4cea1 commit 42b26e6

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
@@ -361,7 +361,8 @@ impl Builder {
361361
fn hash(&self, path: &Path) -> String {
362362
let sha = t!(Command::new("shasum")
363363
.arg("-a").arg("256")
364-
.arg(path)
364+
.arg(path.file_name().unwrap())
365+
.current_dir(path.parent().unwrap())
365366
.output());
366367
assert!(sha.status.success());
367368

0 commit comments

Comments
 (0)