Comments (12)
I just stumbled upon this rust utility you might like.
https://github.com/ouch-org/ouch
from zinit.
What I don't like about that idea though is that while you mention
unar
, there's a ton of alternatives. What$fancy_archive_extractor
should we support?
It's true. There are a lot.
zi
could just fetch unar
(or some other unpacker) for its own use instead of depending on the system's unpacker.
borking the install and requiring a
zi delete.
What exactly do you mean by that?
I don't remember exactly anymore.
I think I had unar
but didn't have xz
. The unpack failed, and zi
didn't know since there was a directory present.
Fixing it required figuring out what happened, installing xz
, and deleting the package so it could reinstall.
from zinit.
Can you show me something that requires an unpacker?
from zinit.
Note my has'xz'
that I just added to prevent it borking the install and requiring a zi delete
.
zinit wait lucid for \
from'gh-r' \
as'program' \
has'xz' \
mv'shellcheck* -> shellcheck' \
pick'shellcheck/shellcheck' \
@koalaman/shellcheck
from zinit.
I can see this within zinit's core.
If there's $fancy_archive_extractor, then use it.
ziextract
should be relatively easy to patch:
Lines 1526 to 1827 in 5df5fb6
What I don't like about that idea though is that while you mention unar
, there's a ton of alternatives.
What $fancy_archive_extractor
should we support?
borking the install and requiring a
zi delete.
What exactly do you mean by that?
from zinit.
If we support installing packages from GH Releases, we must support decompressing them. I think it's reasonable to add support like this.
This is essentially what unar does, to the best of my knowledge. We can reimplement it, or just declare unar as a dependency.
from zinit.
If we support installing packages from GH Releases, we must support decompressing them. I think it's reasonable to add support like this.
That is supported already. I've literally linked to the implementation above :)
zinit can already extract archives.
This issue is about whether ziextract should try unpacking with unar
before falling back to the individual tar
, unzip
, unrar
etc commands.
from zinit.
Hah, right. I see that now. Ignore my comment above. I was thinking we only supported shell scripts and executables.
I don't use this feature, so I'm not super knowledgeable about it.
from zinit.
Can this be closed?
from zinit.
This issue is about whether ziextract should try unpacking with
unar
before falling back to the individualtar
,unzip
,unrar
etc commands.
At least, unar
should be tried. I had unar
available but didn't have xz
.
from zinit.
Can this be closed?
I'd prefer if unar
was added to ziextract.
from zinit.
I, too, have been on systems or in containers that do not have xz (xz-utils on Ubuntu), file, or unzip.
The most portable solution is to try using python3 modules (e.g., lzma, zip, etc.) and fallback to install programs. I think Python3 will solve most issues of missing archive tools.
Thoughts?
from zinit.
Related Issues (20)
- [bug]: Often get database is locked HOT 3
- [bug]: zinit update does not pull stable release from GitHub releases HOT 3
- [bug]: zinit self-update fails with a git error due to conflicting branches HOT 2
- [bug]: `zinit update --parallel` leaves some zombie background process HOT 1
- [maint]: Re-add `--no-pager` option to `zinit self-update` HOT 1
- [bug]: Loading completion with `wait` doesn't work
- [bug]: Cannot load zsh-edit
- [bug]: multiple issues with new `make` ice
- [bug]: Error when using tab selection for auto-completion under `nvm use` command HOT 4
- [feat]: Allow specifying parts of a version HOT 1
- [bug]: compinit:527: no such file or directory: ~/.local/share/zinit/completions/_nvm HOT 3
- [bug]: kubectl not loading when zinit snippet OMZP::kubectl HOT 1
- [feat]: gitea support
- [bug]: compdef is not defined after loading zinit HOT 1
- [bug]: Some of snippets don't load unless .zshrc source manually HOT 1
- [bug]: Picks wrong atuin binary HOT 1
- [bug]: Github has dropped SVN Support HOT 2
- [bug]: docker compose completion does not work
- [maint]: missing lib function
- [bug]: `xdg-open` on Plasma 6 Wayland: `Invalid environment block`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zinit.