zi icon indicating copy to clipboard operation
zi copied to clipboard

[bug]: `OMZP::` snippets fail to update

Open morganmay opened this issue 8 months ago • 0 comments

Environment

zsh 5.9 (x86_64-pc-linux-gnu) on Arch Linux

Reproduction steps

1. Install Oh My ZSH snippets using `OMZP::` syntax
2. Update snippets with `zi update -a` or `zi update -s`

Expected behavior

1. OMZ plugin snippets are downloaded from GitHub using SVN

Current behavior

1. When I run `zi update -a` or `zi update -s`, `OMZP::` snippets fail to update.
2. For example, when `zi` tries to update `OMZP::alias-finder`, I get this error message:

svn: E170013: Unable to connect to a repository at URL 'https://github.com/ohmyzsh/ohmyzsh/trunk/plugins/alias-finder'
svn: E160013: '/ohmyzsh/ohmyzsh/trunk/plugins/alias-finder' path not found
Updating '.':
svn: E170013: Unable to connect to a repository at URL 'https://github.com/ohmyzsh/ohmyzsh/trunk/plugins/alias-finder'
svn: E160013: '/ohmyzsh/ohmyzsh/trunk/plugins/alias-finder' path not found
  1. All OMZP:: snippets fail to update with similar E160013 and E170013 SVN errors.


### Code snippet

```zsh
omz_plugins=(
  alias-finder
  command-not-found
  common-aliases
  emoji
  extract
  git
  history-substring-search
  urltools
  vi-mode
)
for OMZ_PLUGIN in $omz_plugins; do
  zi ice svn
  zi snippet OMZP::$OMZ_PLUGIN
done

Additional information

This used to work. I'm not sure when it stopped. Poking around in the OMZ repository, it looks like the /trunk/ directory is gone, but all of these plugins are still present, so maybe it's just a case of needing to update the URLs in the ZI_1MAP array?

Self-service

  • [ ] I'd be willing to address this documentation request myself.

Have you read the Contributing Guidelines?

Are you familiar with the Contributor Covenant Code of Conduct?

morganmay avatar Jun 13 '24 22:06 morganmay