If you're working on a large monorepo, and you wanna limit some users' access to specific directories (packages) in that monorepo, is there a better way to do this than using git submodules?
For example if you have that monorepo structure
- packages
- package A
- package B
- package C
- common
And you wanna allow a user to read and write to package A
and common
only. Is using git submodules the best way to achieve this?
With Git, read access limitation means a repository is "private" for some users.
And a monorepo with submodules:
One authorization system which can limit at least write access per folder is gitolite (if you have control of your remote server).
Limiting read access inside one (mono)repo is tricky (or impossible).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With