capnfabs / grouse

A diff tool for Hugo static sites.
https://capnfabs.net/posts/grouse-diff-tool-hugo-static-site-generators/
MIT License
12 stars 2 forks source link

Make Grouse work with snapcraft hugo #7

Open capnfabs opened 4 years ago

capnfabs commented 4 years ago

Hugo installed with snapcraft doesn't work with Grouse, because snapcraft has a super restrictive set of permissions by default that doesn't let Hugo write to / read from existing temporary directories. Instead, snaps have their own private view of /tmp (as per here)

I don't know if I want to bother addressing this just yet -- but we ran into it in this discussion and I wanted to track it.

Some ideas:

danyelf commented 3 years ago

I'll add a +1 to this. With apt-get for Hugo still stuck at 0.68, snap is the cleanest way to keep hugo up to date.

capnfabs commented 3 years ago

Yep! I don't have time to work on this at the moment, but (for future implementers, also if it's me!) I'd go with the last option mentioned above. The complex bit is building a strategy for cleaning up the $HOME/grouse-diff directory periodically, and figuring out how to integrate that with the shenanigans that grouse uses to ensure fast checkouts.