codeswitch

maintainer wugeer · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The PKGBUILD uses 'go install' to fetch and build a dependency (wails3) at build time, which is a normal Go workflow for building the project's own tooling; the source is from a public, version-controlled repository and the build is reproducible and auditable within the package context.

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 PKGBUILD uses 'go install' to fetch and build a dependency (wails3) at build time, which is a normal Go workflow for building the project's own tooling; the source is from a public, version-controlled repository and the build is reproducible and auditable within the package context.

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:30 go install github.com/wailsapp/wails/v3/cmd/wails3@latest

PKGBUILD

1 offending line(s) highlighted
1pkgname=codeswitch
2_pkgname=code-switch
3pkgver=0.1.8
4pkgrel=1
5pkgdesc="CodeSwitch desktop app (Wails)"
6arch=('x86_64' 'aarch64')
7url="https://github.com/daodao97/$_pkgname"
8license=('Apache-2.0 LICENSE') # Update if upstream differs
9depends=('gtk3' 'webkit2gtk-4.1' 'nss' 'libnotify' 'libsecret' 'libxkbcommon' 'libx11' 'libxrandr')
10makedepends=('git' 'go' 'nodejs' 'npm')
11source=("$pkgname-$pkgver.tar.gz::https://github.com/daodao97/${_pkgname}/archive/refs/tags/v${pkgver}.tar.gz"
12 "codeswitch.desktop"
13 "codeswitch.png")
14b2sums=('3a8b467ecfb5136231818abcdec62ab18c57a334fb6069eba6119748ff6f50d85568b41ff5dedd755a3709d0f3dcdc0fe7956c0556d4904e9d827cb98caac5e5'
15 '654a8ff6c3b3a6f46da2b55134c9787bf4eba9108f732f5fc421bc7bc98c807bf41223e86ae1e610c58107f5033752e087443a13d81e003e553a8f9eb5902526'
16 '1cc876b1ae79a567ca36c78fa47e58e537928791c8e13cf4cd12b8f9ec8d75c7a061ab46d18c7c3e0fd98477625ea85e7446a5025ba499ed0da2b7c0b1a0c4f0')
17
18build() {
19 export GOPATH="${srcdir}/gopath"
20 export GOBIN="${GOPATH}/bin"
21 export PATH="${GOBIN}:${PATH}"
22 export GOFLAGS="-buildmode=pie -trimpath -mod=readonly"
23
24 cd "${srcdir}/${_pkgname}-${pkgver}"
25
26 pushd frontend >/dev/null
27 npm install --cache "${srcdir}/npm-cache"
28 popd >/dev/null
29
30 go install github.com/wailsapp/wails/v3/cmd/wails3@latest
31
32 wails3 task common:update:build-assets
33 wails3 task common:generate:bindings
34 # Avoid AppImage generation (fails in minimal build env); only build native binary.
35 wails3 task linux:build
36}
37
38package() {
39 cd "${srcdir}/${_pkgname}-${pkgver}"
40
41 local binary=""
42 if [[ -x bin/CodeSwitch ]]; then
43 binary="bin/CodeSwitch"
44 elif [[ -x bin/codeswitch ]]; then
45 binary="bin/codeswitch"
46 elif [[ -x build/bin/CodeSwitch ]]; then
47 binary="build/bin/CodeSwitch"
48 elif [[ -x build/bin/codeswitch ]]; then
49 binary="build/bin/codeswitch"
50 else
51 printf 'codeswitch binary not found after build\n' >&2
52 return 1
53 fi
54
55 install -Dm755 "$binary" "${pkgdir}/usr/bin/codeswitch"
56 install -Dm644 "$srcdir/codeswitch.desktop" "${pkgdir}/usr/share/applications/codeswitch.desktop"
57 install -Dm644 "$srcdir/codeswitch.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/codeswitch.png"
58
59 if [[ -f LICENSE ]]; then
60 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
61 fi
62}
63

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

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

0 / 4000
Your suggestion