zls-master-bin
maintainer vitaliikuzhdin
· 5 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads prebuilt binaries from the project's official release infrastructure (releases.zigtools.org), validates them with both SHA-256 and minisign, and installs only the project's own binaries and documentation; the host is not whitelisted but is plausibly official and trusted by the project.
Triggered rules
LOW
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads prebuilt binaries from the project's official release infrastructure (releases.zigtools.org), validates them with both SHA-256 and minisign, and installs only the project's own binaries and documentation; the host is not whitelisted but is plausibly official and trusted by the project.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
External download from an untrusted host, not in source=()
external_download_not_in_source
curl/wget fetches a URL on a non-allowlisted host that is not part of source=(), so it is not checksum-verified by makepkg.
-
PKGBUILD:49
local index_json="$(curl -s "https://releases.zigtools.org/v1/zls/select-version?zig_version=${zig_version}&compatibility=only-runtime")"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
2
3
declare -Ag _arch=(
4
['aarch64']='aarch64'
5
['armv7h']='arm'
6
['loong64']='loongarch64'
7
['powerpc64le']='powerpc64le'
8
['riscv64']='riscv64'
9
# ['s390x']='s390x'
10
['i686']='x86'
11
['x86_64']='x86_64'
12
)
13
14
_basename="zls"
15
_pkgname="${_basename}-master"
16
pkgname="${_pkgname}-bin"
17
pkgver=0.17.0dev.38+ae3ab43c
18
pkgrel=1
19
pkgdesc="A language server for Zig"
20
arch=(
21
"${!_arch[@]}"
22
)
23
url="https://zigtools.org/zls"
24
license=(
25
'MIT'
26
)
27
depends=(
28
'sh'
29
'zig-master'
30
)
31
makedepends=(
32
'curl'
33
'jq'
34
'minisign'
35
)
36
provides=(
37
"${_pkgname}=${pkgver}"
38
)
39
conflicts=(
40
"${_pkgname}"
41
)
42
source=(
43
"${_basename}-versioned.sh"
44
)
45
sha256sums=('b9e70d344290a58c6e8199a22232fbd2a8789cf76ddf0574f0a4ea647299ea68')
46
47
prepare() {
48
local zig_version="$(zig-master version | tr -d '\n' | jq -sRr @uri)"
49
local index_json="$(curl -s "https://releases.zigtools.org/v1/zls/select-version?zig_version=${zig_version}&compatibility=only-runtime")"
50
local artifact_tarball="$(jq -r ".\"${_arch[$CARCH]}-linux\".\"tarball\"" <<< "${index_json}")"
51
local artifact_shasum="$(jq -r ".\"${_arch[$CARCH]}-linux\".\"shasum\"" <<< "${index_json}")"
52
local artifact_filename="$(basename "${artifact_tarball}")"
53
54
cd "${srcdir}"
55
echo " ==> Retrieving sources..."
56
echo " -> Downloading ${artifact_filename}..."
57
curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o "${artifact_filename}" "${artifact_tarball}"
58
echo " -> Downloading ${artifact_filename}.minisig..."
59
curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o "${artifact_filename}.minisig" "${artifact_tarball}.minisig"
60
61
echo " ==> Validating source files with sha256sums..."
62
echo "${artifact_shasum} ${artifact_filename}" | sha256sum -c -
63
64
echo " ==> Validating source files with minisig..."
65
# https://github.com/zigtools/release-worker?tab=readme-ov-file#build-artifacts
66
# https://github.com/zigtools/zls/releases/latest
67
local zls_minisign="RWR+9B91GBZ0zOjh6Lr17+zKf5BoSuFvrx2xSeDE57uIYvnKBGmMjOex"
68
minisign -V \
69
-P "${zls_minisign}" \
70
-m "${artifact_filename}"
71
72
echo " ==> Extracting sources..."
73
echo " -> Extracting ${artifact_filename} with bsdtar"
74
bsdtar -xf "${artifact_filename}"
75
76
chmod +x ./"${_basename}"
77
78
cd "${srcdir}"
79
sed -e "s|@@ZIG_PATH@@|/opt/zig-master|g" \
80
-e "s|@@ZLS_PATH@@|/usr/lib/${_pkgname}|g" \
81
-i "${_basename}-versioned.sh"
82
}
83
84
pkgver() {
85
cd "${srcdir}"
86
./"${_basename}" version | sed 's/-//g'
87
}
88
89
package() {
90
cd "${srcdir}"
91
install -vDm755 "${_basename}-versioned.sh" "${pkgdir}/usr/bin/${_pkgname}"
92
install -vDm755 "${_basename}" "${pkgdir}/usr/lib/${_pkgname}/${_basename}"
93
install -vDm644 "README.md" "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
94
install -vDm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
95
}
96
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |