zinit
zinit copied to clipboard
[maint]: GitHub no longer supports using svn with paths like /trunk/.
Summary
use another alternative
Proposed fix
No response
Yep, here is the error I have faced for reference when I try to use gitfast as described,
Setting up snippet: OMZP::gitfast
==> Downloading OMZP::gitfast (with Subversion)
svn: E170013: Unable to connect to a repository at URL 'https://github.com/ohmyzsh/ohmyzsh/trunk/plugins/gitfast'
svn: E160013: '/ohmyzsh/ohmyzsh/trunk/plugins/gitfast' path not found
For now I just manually download them,
cd ~/.local/share/zinit/snippets/OMZP::gitfast
git clone https://github.com/ohmyzsh/ohmyzsh/
cp -r ohmyzsh/plugins/gitfast/* .
rm -rf ohmyzsh
Here is my working solution within the confies of zinit on macos at least.
Thanks @vladdoster for the idea though :)
zinit proto'ssh' \
cloneopts'--no-checkout --filter=blob:none' \
atclone'git sparse-checkout init --cone; git sparse-checkout set plugins/{per-directory-history,gitfast}/; git checkout' \
nocompile \
atpull'%atclone' \
atload'' \
multisrc'plugins/gitfast/gitfast.plugin.zsh plugins/per-directory-history/per-directory-history.zsh' \
for ohmyzsh/ohmyzsh
I do think something simpler like this could be added, but more work will need to be done to figure out the various use cases. I haven't tested what happens when you do this with 2 separate zinit load paths. I assume one would overwrite the other.