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

Support mas cleanup #1077

Closed
jeromebaum opened this issue Apr 18, 2022 · 5 comments
Closed

Support mas cleanup #1077

jeromebaum opened this issue Apr 18, 2022 · 5 comments

Comments

@jeromebaum
Copy link

According to the nix-darwin documentation, brew bundle cannot currently clean up mas applications. Is this a design choice or a technical challenge? If a technical challenge, could you explain a bit more about what's tricky & whether you'd be open to a patch to fix this?

@MikeMcQuaid MikeMcQuaid changed the title Status of mas cleanup Support mas cleanup Apr 18, 2022
@MikeMcQuaid
Copy link
Member

I think this was probably just never implemented. It's possible it doesn't work but we're definitely open to a PR to attempt implementation.

@issyl0
Copy link
Member

issyl0 commented Jul 17, 2022

I started on this. Now I realise why it wasn't implemented before. 😅 I found that mas uninstall requires root permissions, and it doesn't always work. In fact, it didn't work at all in my testing (this issue is what happened).

@issyl0
Copy link
Member

issyl0 commented Jul 22, 2022

This is not possible. Unless we want to try to fix mas. But by the looks of its README and the issues that I linked above, Apple has been slowly cutting off the APIs that mas uses and mas cleanup is going the same way. Shame, as I enjoyed working on that branch until I realised it was non-functional.

@issyl0 issyl0 closed this as completed Jul 22, 2022
@issyl0 issyl0 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 22, 2022
@jeromebaum
Copy link
Author

I'm going to watch the relevant mas issues and open another issue if/when this gets fixed in mas. It does look like there is some hope - apparently there is a supported way to do this, though it is some effort.

Thanks for looking into it!

@issyl0
Copy link
Member

issyl0 commented Jul 22, 2022

@jeromebaum Thanks, sounds good. If you find it's fixed then please do ping here (or another issue), I did quite a bit of work here and I'd like to ship it if the underlying behaviour is ever is fixed!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants