doh-relay-git
maintainer helioloureiro
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package builds from source using go install on a git checkout; the flagged 'external install' is part of the standard Go build process within the package's own source, not an untrusted third-party binary or script.
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 builds from source using go install on a git checkout; the flagged 'external install' is part of the standard Go build process within the package's own source, not an untrusted third-party binary or script.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
External install via pipx/uv/poetry/cargo/go/gem
alt_pkg_manager_install
A non-pip/npm package manager (pipx, uv, poetry, cargo install, go install, gem, conda…) fetches and builds an external package at build time, outside source=() and makepkg's checksums.
-
PKGBUILD:43
go install -x -v -modcacherw -buildmode=pie -ldflags "-s -w" -trimpath
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Helio Loureiro <helio@loureiro.eng.br>
2
pkgname=doh-relay-git
3
pkgver=1.0.0.r89.20240412.68c3226
4
pkgrel=4
5
gittag=v1.0.0
6
pkgdesc="DNS-over-HTTPS relay service."
7
arch=(
8
'aarch64'
9
'armv6h'
10
'armv7h'
11
'i686'
12
'x86_64'
13
)
14
url="https://github.com/tinkernels/doh-relay"
15
license=('Apache-2.0')
16
depends=('go>=1.26')
17
makedepends=('go' 'git')
18
provides=("doh-relay=${pkgver}")
19
source=('git+https://github.com/tinkernels/doh-relay.git')
20
sha1sums=('SKIP')
21
22
pkgver() {
23
cd "${srcdir}/doh-relay"
24
git checkout -b $gittag tags/$gittag
25
26
_ver="$(git describe --tags | sed 's|^[vV]||' | sed 's|-g[0-9a-fA-F]*$||' | tr '-' '+')"
27
_rev="$(git rev-list --count HEAD)"
28
_date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
29
_hash="$(git rev-parse --short HEAD)"
30
31
if [ -z "${_ver}" ]; then
32
error "Version could not be determined."
33
return 1
34
else
35
printf '%s' "${_ver}.r${_rev}.${_date}.${_hash}"
36
fi
37
}
38
39
build(){
40
cd "${srcdir}/doh-relay"
41
mkdir -p "${srcdir}/gopath"
42
export GOPATH="${srcdir}/gopath"
43
go install -x -v -modcacherw -buildmode=pie -ldflags "-s -w" -trimpath
44
}
45
46
package(){
47
mkdir -p "${pkgdir}/usr/bin"
48
49
if [ -v GOBIN ]; then
50
_binpath="${GOBIN}"
51
else
52
_binpath="${srcdir}/gopath/bin"
53
fi
54
install "${_binpath}/doh-relay" "${pkgdir}/usr/bin/doh-relay"
55
}
56
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 |