8000 clean: skip directories that dont exist by khaneliman · Pull Request #340 · nix-community/nh · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

clean: skip directories that dont exist #340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

khaneliman
Copy link
Contributor
@khaneliman khaneliman commented Jun 29, 2025

While testing nix-community/home-manager#7341 I noticed the launchd agent reporting a failure, even though I can run it in the terminal. I noticed that, even in terminal, it throws an error on a path that doesn't exist but continues to clean up the paths that do. Just adding some directory exists checks before attempting to clean paths for a cleaner output.

I guess a design question would be, do we need to alert that we're skipping a path?

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
Try to make it easier to maintain when the list of paths to check grows.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
@khaneliman
Copy link
Contributor Author

Added a couple commits for a couple different ideas for adding some notice about skipped paths and / or making maintenance easier if the directories to check changes ever.

Also apply the protection logic to the `all` command. Noticed it
suffered the same issue.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
khaneliman added a commit to khaneliman/khanelinix that referenced this pull request Jul 1, 2025
With nix-community/home-manager#7341 merged,
adding patch for nix-community/nh#340 until that
gets merged so my clean agent runs properly.
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
0