Skip to content
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

Cask cleanup command misplaced result #4995

Closed
ngocphamm opened this issue Jun 19, 2014 · 5 comments
Closed

Cask cleanup command misplaced result #4995

ngocphamm opened this issue Jun 19, 2014 · 5 comments

Comments

@ngocphamm
Copy link
Contributor

Running brew cask cleanup results in the following result.

==> Removing dead symlinks
/Library/Caches/Homebrew/Casks/hr-0.3.6.zip
==> Removing cached downloads
Nothing to do

I think the part about hr zip should be under "Removing cached downloads".

@rolandwalker
Copy link
Contributor

Hi! Thanks for the report!

In this case, /Library/Caches/Homebrew/Casks/hr-0.3.6.zip actually was a dead symlink. I'm not sure how to display it better. Showing the target of the symlink might confuse people, because the link target of a dead link is a nonexistent file.

@ngocphamm
Copy link
Contributor Author

Not sure why it would be a dead symlink, actually. However, it's okay up to your decision. I just found it a bit confusing and think it could be a bug there. Thank you for looking into that.

@rolandwalker
Copy link
Contributor

Homebrew-cask creates tracker symlinks because (parent command) Homebrew's brew cleanup does not know how to clean up our files. (#2759)

Would it be helpful to the user if we added the word "tracker"?

==> Removing dead tracker symlinks
/Library/Caches/Homebrew/Casks/hr-0.3.6.zip
==> Removing cached downloads
Nothing to do

or is that just more confusing?

Since the filesystem is being changed, I definitely want the user to be informed.

@ngocphamm
Copy link
Contributor Author

Either way will need clarification on the documentation of the command or so, in my opinion. If it's there (and clearly, somehow) it would be good to leave it in current state. Or maybe it's not that important, just me feeling a bit lost. 😄

rolandwalker added a commit to rolandwalker/homebrew-cask that referenced this issue Jun 19, 2014
At least mention tracker symlinks in the docs, since they
are displayed in the feedback messages.

References: Homebrew#4995
@vitorgalvao
Copy link
Member

If you want to submit a PR to make the documentation clearer, @ngocphamm, we can review it. This isn’t a common complaint, though (don’t remember ever seeing it repeated).

@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants