Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat]: remove subversion dependency #504

Open
vladdoster opened this issue Apr 15, 2023 · 8 comments
Open

[feat]: remove subversion dependency #504

vladdoster opened this issue Apr 15, 2023 · 8 comments

Comments

@vladdoster
Copy link
Member

vladdoster commented Apr 15, 2023

Issue

Github is sunsetting Subversion support in 2024.

Proposed feature

git sparse-checkout

To restrict working directory to a set of directories, run the following commands:

git sparse-checkout init --cone
git sparse-checkout set ...

Caveats

The sparse-checkout feature was introduced in Git v2.25 (2020), so it could break on older distributions.

For example, all versions older than Ubuntu 19.0.4 do not ship with a compatible Git version.

Published version of Git located here

Related Issues

#481

@MenkeTechnologies
Copy link
Contributor

MenkeTechnologies commented Jan 11, 2024

I want to load the OMZ plugin macos but it sources 2 script files in the OMZ plugin directory, spotify and music.

~/.zinit/snippets/OMZP::macos/OMZP::macos:source:269: no such file or directory: 
~/.zinit/snippets/OMZP::macos/music
~/.zinit/snippets/OMZP::macos/OMZP::macos:source:272: no such file or directory: 
~/.zinit/snippets/OMZP::macos/spotify

Now that svn support is gone from GitHub, how do I load that snippet?

I tried to clone the individual scripts like

zinit snippet OMZP::macos/music but I get:

==> Downloading OMZP::macos/music (with curl, wget, lftp)
curl: (22) The requested URL returned error: 404
curl: (22) The requested URL returned error: 404
ERROR: Download failed.

Using sparse-checkout would work as mentioned.

git clone -n --depth=1 --filter=tree:0 https://github.com/ohmyzsh/ohmyzsh
cd ohmyzsh
git sparse-checkout set --no-cone plugins/macos
git checkout

@Magotchi
Copy link

Magotchi commented Feb 5, 2024

As of 2024-01-08, GitHub has removed support for the Subversion protocol entirely. I noticed this when "svn OMZP::gitfast" stopped working for me in zinit. This issue is now more of a bug than a feature request.

Apparently this was noticed already in another closed issue, but that seems to have only addressed the zinit "snippet" feature.

@atanaspam
Copy link

I created a temporary workaround for getting the macos plugin working with zinit can be achieved by using gists or a one-off local copy of the macos plugin.
For example I created the following gist
https://gist.github.com/atanaspam/b43be6c483893bfe411764f3c6902ff7
which essentially contains a glued copy of the contents of the macos.plugin.zsh, music and spotify files into a single file.
After that one can just load the gist as normal.

zinit snippet https://gist.githubusercontent.com/atanaspam/b43be6c483893bfe411764f3c6902ff7/raw/

The same logic can be applied for any other dependency that previously required ice svn as long as the number of files is managable.

@fengkx
Copy link

fengkx commented Feb 24, 2024

I am using shell-proxy omz plugin. It contains python scripts. So copy pasting into one files is not woking for this. I can't found any workaround for now...

@ICHx
Copy link

ICHx commented Mar 20, 2024

+1, trying out zinit today, and this become an issue for new OMZ users, not mentioned in README
#465
#481

@shaneog
Copy link

shaneog commented Apr 12, 2024

Is there a documented workaround for this at the moment?

shaneog added a commit to shaneog/dotfiles that referenced this issue May 9, 2024
@fleXible
Copy link

Has anybody found a no-code-change and scalable work-around?

Snippets with more than a single file, that used to be cloned with svn,
to me are broken for me right now.

This involves multiple oh-my-zsh and prezto modules (git, helper, node, python, utility, ...)

@repkid
Copy link

repkid commented May 23, 2024

I have created a quick and dirty workaround for the issue with OMZ plugins and posted it here: #651

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants