diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-02-08 15:08:30 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-02-08 15:08:30 -0800 |
| commit | 67574ccd5352746c8040de05f469a3bb86e2fa97 (patch) | |
| tree | c50ae2802ab9044022cf4892c5373c0edbc4d33a /src/tools | |
| parent | 10f6a5c4431e09d355a0ba319a630e02a1e38361 (diff) | |
| download | rust-67574ccd5352746c8040de05f469a3bb86e2fa97.tar.gz rust-67574ccd5352746c8040de05f469a3bb86e2fa97.zip | |
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.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/build-manifest/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/build-manifest/src/main.rs b/src/tools/build-manifest/src/main.rs index 8c15a6630a3..8afe0cfd102 100644 --- a/src/tools/build-manifest/src/main.rs +++ b/src/tools/build-manifest/src/main.rs @@ -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()); |
