Skip to content

Add remove step to delete artifacts when removing package #2550

@craciunoiuc

Description

@craciunoiuc

Feature request summary

We should introduce a post-rm step for deb packages and equivalents for the rest to delete the following files in order:

  1. Every set file at the start of ~/.config/kraftkit/config.yaml
  2. Deleting also ~/.local/share/kraftkit
  3. Removing ~/.config/kraftkit/config.yaml at the end

The uninstaller should ask the user if they want to keep configurations with the default being Yes. If Yes, step 3. should be ommitted.

To achieve this probably a helper script needs to be used to parse the config, but requires investigation.

Describe alternatives

No response

Related architectures

None

Related platforms

None

Additional context

https://nfpm.goreleaser.com/tips/ -- post remove scripts
https://github.com/unikraft/kraftkit/blob/staging/.goreleaser-stable.yaml
https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    🧊 Icebox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions