Skip to content

Commit 3a2c940

Browse files
committed
Ensure the tmpdir is dropped
1 parent f4730d5 commit 3a2c940

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ jobs:
150150
if: ${{ matrix.os == 'ubuntu-latest' }}
151151
# ^^ only on one platform as wasteful otherwise
152152
153+
- run: if [ $(find ~/.pkgx -name .tmp\* -type d | wc -l) -gt 0 ]; then
154+
exit 1;
155+
fi
156+
153157
- name: generate coverage
154158
run: |
155159
cargo install rustfilt

crates/lib/src/install.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ where
103103

104104
// Step 5: atomically move from temp dir to installation location
105105
let partial_path = format!("{}/v{}", pkg.project, pkg.version.raw);
106-
fs::rename(temp_dir.into_path().join(&partial_path), &dst_path)?;
106+
fs::rename(temp_dir.path().join(&partial_path), &dst_path)?;
107107

108108
let installation = Installation {
109109
path: dst_path,

0 commit comments

Comments
 (0)