Skip to content

Conversation

dr-frmr
Copy link
Contributor

@dr-frmr dr-frmr commented Jun 6, 2024

Problem

When a userspace package is installed, we unzip it into a /pkg folder. On subsequent installs, this folder was being overwritten but not wiped, leading to old files living on unless explicitly deleted.

Solution

These two small changes to bootstrap (runtime) and app store (userspace) make it such that a /pkg folder is always wiped before a package is unzipped into it.

Testing

  • Boot a node, observe success
  • Install an app, delete some files from /pkg, install it again, observe the deletion

Docs Update

We should document this aspect of development better in general.

@dr-frmr dr-frmr merged commit c4ea60f into develop Jun 6, 2024
@dr-frmr dr-frmr deleted the dr/wipe-pkg-on-install branch June 6, 2024 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant