daytona
daytona copied to clipboard
`daytona purge` bails when permission not granted to remove shell autocomplete
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:
- Execute
daytona purge
on an account managed by Nix home-manager, where the shell is managed by home-manager. - 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