Skip to content

Commit

Permalink
Ensure the tmpdir is dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Mar 3, 2025
1 parent 64f5047 commit 94eefeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ jobs:
if: ${{ matrix.os == 'ubuntu-latest' }}
# ^^ only on one platform as wasteful otherwise
- run: if [ $(find ~/.pkgx -name .tmp\* -type d | wc -l) -gt 0 ]; then
exit 1;
fi

- name: generate coverage
run: |
cargo install rustfilt
Expand Down
2 changes: 1 addition & 1 deletion crates/lib/src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ where

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

let installation = Installation {
path: dst_path,
Expand Down

0 comments on commit 94eefeb

Please sign in to comment.