Skip to content

Commit

Permalink
fix(python): proper virtualenv cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Feb 5, 2025
1 parent a9c3875 commit ecfbc1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cli/install-tool/install-tool.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class InstallToolService {
await deleteAsync(
[
`${this.pathSvc.cachePath}/.cache/**`,
`${this.pathSvc.cachePath}/.local/share/virtualenv/**`,
`${this.pathSvc.cachePath}/.local/share/virtualenv`,
],
{
force: true,
Expand Down
2 changes: 1 addition & 1 deletion src/cli/services/path.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class PathService {
await this.createDir(this._toolInitPath);
await this.createDir(join(this.tmpDir, 'cache', '.cache'));
await this.createDir(join(this.tmpDir, 'cache', '.config'));
await this.createDir(join(this.tmpDir, 'cache', '.local'));
await this.createDir(join(this.tmpDir, 'cache', '.local', 'share'));
}

async ensureToolPath(tool: string): Promise<string> {
Expand Down
2 changes: 1 addition & 1 deletion src/usr/local/containerbase/utils/filesystem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function get_cache_path () {
create_folder "${cache_path}" 775
create_folder "${cache_path}/.cache" 775
create_folder "${cache_path}/.config" 775
create_folder "${cache_path}/.local" 775
create_folder "${cache_path}/.local/share" 775
fi
echo "${cache_path}"
}
Expand Down

0 comments on commit ecfbc1b

Please sign in to comment.