zdharma-continuum / zinit

🌻 Flexible and fast ZSH plugin manager
MIT License
2.89k stars 125 forks source link

[maint]: a new gh-r test #449

Closed psprint closed 1 year ago

psprint commented 1 year ago

Summary

I saw that there is a group of gh-r tests that download multiple projects. There is one other somewhat interesting project to test: naggie/dstask, because zinit normally chooses wrong "import" binary, however with a clever bpick'' this can be fixed:

zi sbin'dstask*->tsk' bpick'^*import*' ghapi from'gh-r' for dstas

The bpick'' iced blocks "import" binaries and makes zinit choose the main binary, because ^ is a negation.

Proposed fix

No response

vladdoster commented 1 year ago

@psprint What does ghapi do? It errors for me.

 zi lbin'!dstask*->tsk' bpick'^*import*' ghapi from'gh-r' for naggie/dstask
ERROR: Unknown subcommand: `ghapi` It should be one of the following:
1. a subcommand - i.e., `load`, `snippet`, `update`, `delete` (e.g., `zinit load username/reponame`)
2. a for-based command body - i.e., `no compile`, `from'g-r'`, `null`, etc. (e.g., `zinit <ICE(s)> for <PLUGIN/SNIPPET>`) 

See `help` for a more detailed usage information and the list of the subcommands.
Screenshot 2023-01-08 at 15 06 51
psprint commented 1 year ago

@vladdoster: ah, I've forgot to clear unscope annex.

zi  from'gh-r' sbin'dstask*->tsk' bpick'^*import*' for naggie/dstask
vladdoster commented 1 year ago

@psprint PR open #455

vladdoster commented 1 year ago
Screenshot 2023-01-08 at 15 31 20