zls-master-bin

LOW
maintainer vitaliikuzhdin 5 votes scanned 2026-09-17 00:27:14.276658
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
3declare -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"
16pkgname="${_pkgname}-bin"
17pkgver=0.17.0dev.38+ae3ab43c
18pkgrel=1
19pkgdesc="A language server for Zig"
20arch=(
21 "${!_arch[@]}"
22)
23url="https://zigtools.org/zls"
24license=(
25 'MIT'
26)
27depends=(
28 'sh'
29 'zig-master'
30)
31makedepends=(
32 'curl'
33 'jq'
34 'minisign'
35)
36provides=(
37 "${_pkgname}=${pkgver}"
38)
39conflicts=(
40 "${_pkgname}"
41)
42source=(
43 "${_basename}-versioned.sh"
44)
45sha256sums=('b9e70d344290a58c6e8199a22232fbd2a8789cf76ddf0574f0a4ea647299ea68')
46
47prepare() {
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
84pkgver() {
85 cd "${srcdir}"
86 ./"${_basename}" version | sed 's/-//g'
87}
88
89package() {
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)SeverityRules
2026-09-17 00:27:14 Low 2
2026-09-16 00:03:17 Low 2
2026-09-15 00:25:31 Low 2
2026-09-14 00:27:57 Low 2
2026-09-13 00:19:54 Low 2
2026-09-12 00:25:17 Low 2
2026-09-11 00:19:22 Low 2
2026-09-10 00:22:44 Low 2
2026-09-09 00:04:09 Low 2
2026-09-08 00:18:08 Low 2
2026-09-07 00:30:15 Low 2
2026-09-06 00:17:06 Low 2
2026-09-05 00:16:27 Low 2
2026-09-04 00:03:13 Low 2
2026-09-03 00:15:47 Low 2
2026-09-02 00:02:31 Low 2
2026-09-01 00:11:19 Low 2
2026-08-31 00:19:57 Low 2
2026-08-30 00:04:14 Low 2
2026-08-29 00:29:17 Low 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion