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

exa on ubuntu 21.10 (v0.10.1) has git support disabled #978

Open
pjroth opened this issue Nov 16, 2021 · 23 comments
Open

exa on ubuntu 21.10 (v0.10.1) has git support disabled #978

pjroth opened this issue Nov 16, 2021 · 23 comments
Labels
packaging Building and distribution issues

Comments

@pjroth
Copy link

pjroth commented Nov 16, 2021

When I upgraded from ubuntu from 21.04 to 21.10 and exa --git stopped working. I now get the following error:

$ exa --git
exa: Options --git and --git-ignore can't be used because `git` feature was disabled in this build of exa

OS: Ubuntu 21.10
Version:

$ exa --version
exa - list files on the command-line
v0.10.1 [-git]
https://the.exa.website/

Thank you for this great tool!

@pjroth
Copy link
Author

pjroth commented Nov 16, 2021

@DanBrown47
Copy link

Still not resolved ?

@DexterHaxxor
Copy link

nope!

@JSchatten
Copy link

Right now I'm using "exa" 0.9 version. Installed by cargo and added by PATH variable for bin-files (export PATH="/home/username/.cargo/bin:$PATH"):

sudo apt  install cargo
cargo install --vers 0.9.0 exa

Maybe next version (over 0.10.1) will build with git support, I'm using exa only for this.

@Antonio-Bennett
Copy link

Interestingly enough I installed latest version with cargo instead of apt and everything works fine

@ariasuni
Copy link
Collaborator

Yeah Ubuntu builds exa with git support disabled because of some problem they had (or at least it was the case before, not sure if it’s still the case). I’m not gonna close this right away, so that people can see this issue until it’s solved upstream, but really you need to check if it’s fixed on recent versions of Ubuntu, then complain to Ubuntu if it’s still the case, because it’s an Ubuntu issue which I know nothing about (though it would be useful if I had more info about why it was disabled in the first place…).

Anyways just install exa in another way, see e.g. here:
#917 (comment)

@ariasuni ariasuni added the packaging Building and distribution issues label Mar 17, 2022
@Crocmagnon
Copy link

Still an issue on Ubuntu 22.04 FYI.

@seebi
Copy link

seebi commented Sep 27, 2022

Same with Ubuntu 22.04.1 LTS ...

@JSchatten
Copy link

JSchatten commented Sep 28, 2022

I've clone git repo of exa (master branch), build by cargo and git function is enable by default ($exa -Glh --git). It's all fine.
upd:
johann:~$ exa --version
exa - list files on the command-line
v0.10.1 [+git]

@sozelfist
Copy link

Same problem with --git & --git-ignore on wsl2 (kernel: Ubuntu 22.04.1 LTS). When I run the command on zsh terminal, it prints out:

$ ~ which exa && exa --version
/usr/bin/exa
exa - list files on the command-line
v0.10.1 [-git]
https://the.exa.website/

I have install exa from Ubuntu apt store via sudo apt install --upgrade exa.

@tea0112
Copy link

tea0112 commented Oct 20, 2022

This also happened on my PopOS.

@tdelam
Copy link

tdelam commented Oct 26, 2022

Issue on Pop_Os!

@xidameng
Copy link

I had the same issue and solved it by using cargo to install exa instead, somehow cargo will always re-build the binary before installing it, so the Git integration will be added during the build.
I am using WSL2 with ubuntu 22.04 btw.

@ariasuni
Copy link
Collaborator

ariasuni commented Nov 7, 2022

This isn’t very useful to post here information we already have (that exa on Ubuntu has git support disabled on 22.04).

This is a Debian problem (because, in short, Ubuntu uses the Debian package), I’m reposting the link:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993768

Please send a nice message there, or to Ubuntu, if you want to let them know this is a issue you care about (I don’t really have the time, personally).

Also, I wrote about instructions to install exa from other sources (with git enabled):
#978 (comment)

@ryannewcomer
Copy link

hi, i got the same problem, i use sudo apt install exa and i have just remove it and install it with brew. it working now (just for someone who have the same problem)

@shalak
Copy link

shalak commented Jan 22, 2023

@ariasuni the debian issue you linked to seems to be fixed with 0.10.1-3, but on Ubuntu 22.04.1 there's still 0.10.1-2.

Do we wait for ubuntu to catch up, or do we need to do something to make the bump happen?

@bayou-brogrammer
Copy link

If anyone is still facing this issue, just pull the repo locally, and install it from there.

cargo install --path . --all-features

@ariasuni
Copy link
Collaborator

@shalak I don’t know and don’t have the time (at least right now) to learn how Ubuntu works. exa is probably in the category of packages which never gets upgraded after release, except if it’s a security issue.

@Robert-Ernst
Copy link

Ubuntu is not ArchLinux. It doesn't have rolling upgrades. So someone has to green light it.
While it's possible to ping someone to remind them to include it in the next release, it probably take the time at least to the next release.

Here is the official package link for 22.10:
https://packages.ubuntu.com/kinetic/exa

@pabloqpacin
Copy link

If you're like me and really want exa --git in Ubuntu, just install Rust and its package manager. The Rust installation is pretty straightforward, defaults are good, no headache.

# Uninstall the APT package if present
sudo apt remove exa

# Install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# Install exa
cargo install exa

mamaraddio pushed a commit to zap-zsh/exa that referenced this issue Apr 18, 2023
Exa does not support the git flag on all systems, namely Ubuntu. This
change introduces a conditional statement in the alias declaration to
only use the --git flag if git is enabled on exa.

Ref: ogham/exa#978
@Trevo525
Copy link

Trevo525 commented May 23, 2023

I believe that this issue is more specifically with Ubuntu's upstream Debian. I had the same issue with Armbian OS which to my knowledge is based on Debian specifically.

$ exa --version
exa - list files on the command-line
v0.10.1 [-git]
https://the.exa.website/
$ uname -a
Linux orangepi3-lts 5.15.93-sunxi64 #23.02.2 SMP Fri Feb 17 23:48:38 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

Uninstalling through Apt and installing through cargo worked for me.

Thanks @pabloqpacin for the guide!

@sozelfist
Copy link

Well, I think this topic should be closed because the solution to the problem is all given.

@mhucka
Copy link

mhucka commented Jun 3, 2023

On Ubuntu 22.04.2 LTS (and probably others), cargo can also be installed using apt or apt-get normally. E.g.,

apt-get install cargo

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

No branches or pull requests