Package Details: git-delta 0.7.1-1

Git Clone URL: https://aur.archlinux.org/git-delta.git (read-only, click to copy)
Package Base: git-delta
Description: A syntax-highlighting pager for git and diff output
Upstream URL: https://github.com/dandavison/delta
Keywords: beautify CLI diff git pager
Licenses: MIT
Submitter: Kr1ss
Maintainer: Kr1ss
Last Packager: Kr1ss
Votes: 32
Popularity: 4.14
First Submitted: 2019-10-08 13:19
Last Updated: 2021-03-29 23:19

Latest Comments

1 2 3 Next › Last »

Kr1ss commented on 2021-01-15 22:35

Thx @nickelc ! I'll push an update.

nickelc commented on 2021-01-15 22:28

Hi, packaging fails if a custom target dir is set via the CARGO_TARGET_DIR env variable. This patch fixed it for me.

diff --git a/PKGBUILD b/PKGBUILD
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -43,7 +43,8 @@ check() {

 package() {
   cd "$_name-$pkgver"
-  install -Dm755 "target/release/$_name"   -t"$pkgdir/usr/bin/"
+  targetdir=${CARGO_TARGET_DIR:-target}
+  install -Dm755 "$targetdir/release/$_name"   -t"$pkgdir/usr/bin/"
   install -Dm644 {README,CONTRIBUTING}.md  -t"$pkgdir/usr/share/doc/$_name/"
   install -Dm644 LICENSE                   -t"$pkgdir/usr/share/licenses/$_name/"
   cd etc

Kr1ss commented on 2020-12-31 09:51

Thank you for the flag @ronjouch !

I'm currently not at my box and don't have the SSH keys with me. I'll probably update tonight.

Cheers, and all of you have a happy 2021 !

bdefore commented on 2020-12-20 16:45

Thanks @Lovecraftian this was exactly something I encountered. git functioned properly for everything except diff which I had aliased to use git-delta, and it wasn't immediately clear what the cause was. removing git-delta and readding with a rebuild fixed the issue.

Kr1ss commented on 2020-10-31 18:33

It's all good. Thank you for getting back and mentioning the cache issue.

This may be helpful for others who step into that trap.

Lovecraftian commented on 2020-10-31 18:29

You're right, I'm a dunce. I went to rebuild the package, but didn't clear my cache.

Thanks for following up and sorry for the noise!

Kr1ss commented on 2020-10-31 08:55

Thank you for your comment @Lovecraftian. There's no actual problem though.

This package does work fine even with the updated libgit2, that's why I bumped $pkgrel.

If someone gets the mentioned error, please just do a rebuild against the updated libgit2.

Cheers !

Lovecraftian commented on 2020-10-31 08:36

Just putting this here in case anyone has issues after the recent libgit2 update. If you get a message like

delta: error while loading shared libraries: libgit2.so.1.0: cannot open shared object file: No such file or directory

then it's from the update to libgit2 1.10

The master branch upstream works just fine, just no release yet. I already opened an issue upstream (https://github.com/dandavison/delta/issues/373), so that the maintainer is aware. Until then you could build from master or stay on the older version of libgit2 (unless there's some security concerns, please let me know if so!)

Edit: Oh or you can also temporarily stop using git-delta until everything is working too

nicktee commented on 2020-08-12 22:59

Thanks @Kr1ss. I didn't know that about the recommendation :)

Kr1ss commented on 2020-08-10 08:24

Thx for your comment @nicktee.

While it isn't necessary to have a check() function, it is highly recommended if upstream provides test cases.

If you really want to build w/o testing, you can always do so by :

  • calling makepkg as makepkg --nocheck
  • editing the PKGBUILD and adding BUILDENV+='(!check')

Reference

Also, there's a git-delta-bin package which uses pre-built binaries, and which is updated as frequently as this one by its maintainer.

EDIT To answer your question, I think the main reason for running local tests is b/c everyone is supposed to have an individual configuration (and build environment).

Cheers !