daytona icon indicating copy to clipboard operation
daytona copied to clipboard

`daytona purge` bails when permission not granted to remove shell autocomplete

Open osslate opened this issue 9 months ago • 0 comments

Describe the bug On an account where shell configuration is managed by home-manager, attempting to purge data using the CLI fails due to permissions issues. home-manager assumes ownership of some configuration files when managing the user shell, including the main fish configuration when fish is enabled: https://github.com/nix-community/home-manager/blob/master/modules/programs/fish.nix

To Reproduce Steps to reproduce the behavior:

  1. Execute daytona purge on an account managed by Nix home-manager, where the shell is managed by home-manager.
  2. Confirm that you want to purge all data.

Expected behavior daytona purge reports the error to the user but continues with any outstanding steps in purging all configs/data relating to Daytona. The error isn't classed as fatal.

More broadly, the steps of daytona purge should be left to the package manager to clean up in instances where Daytona isn't installed using the script.

Desktop (please complete the following information):

  • OS: macOS Sonoma
  • Daytona Version: 0.16.0

osslate avatar May 21 '24 15:05 osslate