Skip to content

Commit c3281da

Browse files
authored
Fix: clean up any residual sandbox folder on install (#932)
1 parent 807dc4e commit c3281da

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

Changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ This project does _not_ adhere to
77
[Semantic Versioning](https://semver.org/spec/v2.0.0.html) but contrary to it
88
every new version is a new major version.
99

10+
## 181.0.0 - 2024-07-11
11+
12+
### Changed
13+
14+
- nrfutil sandbox deletes any residual sandbox folder before install.
15+
1016
## 180.0.0 - 2024-07-01
1117

1218
### Changed

nrfutil/sandbox.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,13 @@ export class NrfutilSandbox {
194194
onProgress?: (progress: Progress, task?: Task) => void
195195
) => {
196196
try {
197+
// Clean up any residual sandbox from before if any
198+
if (this.env.NRFUTIL_HOME && fs.existsSync(this.env.NRFUTIL_HOME)) {
199+
fs.rmSync(this.env.NRFUTIL_HOME, {
200+
recursive: true,
201+
force: true,
202+
});
203+
}
197204
await this.spawnNrfutil(
198205
'install',
199206
[`${this.module}=${this.version}`, '--force'],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nordicsemiconductor/pc-nrfconnect-shared",
3-
"version": "180.0.0",
3+
"version": "181.0.0",
44
"description": "Shared commodities for developing pc-nrfconnect-* packages",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)