codeswitch

LOW
maintainer wugeer 0 votes scanned 2026-09-17 00:27:14.276658
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-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