Package Details: zig-completion-git gc5b387b-1

Git Clone URL: https://aur.archlinux.org/zig-completion-git.git (read-only, click to copy)
Package Base: zig-completion-git
Description: Shell completions for the Zig compiler.
Upstream URL: https://github.com/ziglang/shell-completions.git
Keywords: bash completion shell zig zsh
Licenses: MIT
Submitter: jamazi
Maintainer: jamazi
Last Packager: jamazi
Votes: 1
Popularity: 0.000000
First Submitted: 2023-06-09 09:33 (UTC)
Last Updated: 2023-06-09 09:33 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

aravance commented on 2025-07-13 13:55 (UTC)

I would suggest applying the following diff to the PKGBUILD to make it have better compatibility with the AUR helper tools.

diff --git a/PKGBUILD b/PKGBUILD
index 32c62ae..33a6920 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@

 pkgname=zig-completion-git
 _pkgname=shell-completions
-pkgver=gc5b387b
+pkgver=r17.4f91bcb
 pkgrel=1
 pkgdesc="Shell completions for the Zig compiler."
 url="https://github.com/ziglang/shell-completions.git"
@@ -14,7 +14,7 @@ sha256sums=('SKIP')

 pkgver() {
   cd "${_pkgname}"
-  git describe --long --all | sed 's/.*-//'
+  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
 }

 package() {

laura7089 commented on 2024-12-17 19:35 (UTC)

Please consider altering the pkgver variable value to match the output format of the pkgver() function. As is, the package will be rebuilt every time by AUR helpers because pkgver() can never match pkgver=.

Additionally, git commit hashes (truncated or not) do not increase numerically and thus are not suitable for usage as pkgver values because it's impossible to tell without inspecting the source repo whether one package is newer than another.

sandromatic commented on 2024-12-16 05:17 (UTC)

This version is out of date but seems to explicitly provide the newest version of the git repo, causing the AUR helper to continually redownload on an update.