GNOME Bugzilla – Bug 781016
Provide a way for hard clean all related to a project (~/.cache/gnome-builder + %projectdir/.flatpak-builder + meson/autotools clean)
Last modified: 2018-01-11 10:25:24 UTC
I'm not sure if this is a fair or good addition, but let's consider it. Given the current new integration of Flatpak and the fast evolving of Builder would be good to overcome some of the issues people find that are usually fixed by removing ~/.cache/gnome-builder + %projectdir/.flatpak-builder and doing a meson/autotools clean all. So providing a UI or so for that would be good (although I'm regretting it while I write :D). The alternative is just let them frustrate until they ask the question and we say to follow the steps described above manually.
I'd like to understand how it got in that state before adding any workarounds.
fair enough, but we always had a "wipe and start over" for example in jhbuild for these situations. I'm honestly not sure we should have it in Builder, but I wonder if it would minimize frustration although we are very interested in fixing the underlying issues.
Implementing this would be a bit difficult given the lack of a recursive delete function in glib.
We have IdeDirectoryReaper in libide/util that might be reusable.
(In reply to Matthew Leeds from comment #3) > Implementing this would be a bit difficult given the lack of a recursive > delete function in glib. There is also https://git.gnome.org/browse/libglnx/tree/glnx-shutil.c#n80, but it is likely Linux-only. (In reply to Christian Hergert from comment #4) > We have IdeDirectoryReaper in libide/util that might be reusable. I wonder if we can leverage the fact that ide_directory_reaper_add_glob isn't actually used, and wrap glnx_shutil_rm_rf_at on Linux. Probably not worth the trouble.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-builder/issues/214.