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.
This commit is contained in:
parent
10f6a5c443
commit
67574ccd53
@ -350,7 +350,8 @@ impl Builder {
|
||||
fn hash(&self, path: &Path) -> String {
|
||||
let sha = t!(Command::new("shasum")
|
||||
.arg("-a").arg("256")
|
||||
.arg(path)
|
||||
.arg(path.file_name().unwrap())
|
||||
.current_dir(path.parent().unwrap())
|
||||
.output());
|
||||
assert!(sha.status.success());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user