tionis / glyph.janet

Personal Data Manager for the command line
MIT License
13 stars 0 forks source link

RFC: track modules as git submodules #2

Closed tionis closed 2 years ago

tionis commented 2 years ago

This is a request for comments from all potential users regarding the following question: Should glyph modules be tracked as submodules?


Pros

Cons

tionis commented 2 years ago

@masukomi I'd especially like input from you, as you showed interest in the general idea before.

tionis commented 2 years ago

After some consideration I decided to keep glyph modules as git submodules and add a new type of glyph module called “user scripts” which are tracked directly in the main repo. Together with a custom .gitignore users can use these scripts to implement all the additional content management they need.

masukomi commented 1 year ago

well. i 100% missed this, and it's obviously too late, BUT... as much as i dislike the implementation of git submodules I think this is the right call.

tionis commented 1 year ago

After testing the git submodule approach, I decided to take a new approach I'm creatively calling "Glyph 2.0" (it's more like a 0.2.0, long live 0ver).
Glyph modules will be tracked as independent git repos wholly managed by their module script, glyph only sits in the middle and manages their location, CLI interaction, and sync. The goal for glyph is more of a very simple platform that exposes a few useful functions like a global file based config to other modules.
For devices like android phones, an approach using git work trees will also be supported. This change will also improve the integration with external tools like Git Journal, Obsidian and Co significantly.
I will also carry over this change in philosophy into the example modules.
Important to note here that the biggest disadvantages of this change are performance and maybe security.