Skip to content

Commit

Permalink
Fix: clean up any residual sandbox folder on install (#932)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebonnici authored Jul 11, 2024
1 parent 807dc4e commit c3281da
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ This project does _not_ adhere to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html) but contrary to it
every new version is a new major version.

## 181.0.0 - 2024-07-11

### Changed

- nrfutil sandbox deletes any residual sandbox folder before install.

## 180.0.0 - 2024-07-01

### Changed
Expand Down
7 changes: 7 additions & 0 deletions nrfutil/sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,13 @@ export class NrfutilSandbox {
onProgress?: (progress: Progress, task?: Task) => void
) => {
try {
// Clean up any residual sandbox from before if any
if (this.env.NRFUTIL_HOME && fs.existsSync(this.env.NRFUTIL_HOME)) {
fs.rmSync(this.env.NRFUTIL_HOME, {
recursive: true,
force: true,
});
}
await this.spawnNrfutil(
'install',
[`${this.module}=${this.version}`, '--force'],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nordicsemiconductor/pc-nrfconnect-shared",
"version": "180.0.0",
"version": "181.0.0",
"description": "Shared commodities for developing pc-nrfconnect-* packages",
"repository": {
"type": "git",
Expand Down

0 comments on commit c3281da

Please sign in to comment.