From aef796dec1700a607ea27bb4db55e4f83ae88dde Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Tue, 2 Jun 2026 17:01:23 +0900 Subject: build(pkg): provision cs for native installs via a 'code-search' split package The Docker path (bin/up) already builds and bundles cs, but the native package path (bin/service install -> bin/build-pkg -> makepkg) did not, so search_code would have no cs binary under a systemd/s6 install and fall back to its 'cs not found' error. - packaging/PKGBUILD: add 'code-search' to the split pkgname array; add go+git to makedepends; build the patched, statically-linked cs (pinned v3.1.0 commit + docker/cs/luau-declarations.patch) in build(); install it to /usr/bin/cs via a dedicated package_code-search() (with the upstream MIT LICENSE). Pin kept in lockstep with the Dockerfiles. - bin/install-pkg: install code-search alongside dispatch + dispatch-systemd by default (and under --all). Verified: full run produces code-search-0.0.1-1-x86_64.pkg.tar.zst containing a working /usr/bin/cs (v3.1.0, static) with Luau declaration detection; the dispatch package no longer contains cs. Tests (598) + biome still pass. --- bin/install-pkg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/install-pkg b/bin/install-pkg index 72e218b..9665847 100755 --- a/bin/install-pkg +++ b/bin/install-pkg @@ -5,7 +5,7 @@ # Pass package names (without version) to install a custom set. # # Usage: -# bin/install-pkg # dispatch + dispatch-systemd +# bin/install-pkg # dispatch + dispatch-systemd + code-search # bin/install-pkg dispatch dispatch-s6 # dispatch + dispatch-s6 # bin/install-pkg dispatch dispatch-electron # dispatch + electron wrapper # bin/install-pkg --all # every freshest pkg found @@ -35,9 +35,9 @@ declare -a names declare -a paths if [ $# -eq 0 ]; then - names=(dispatch dispatch-systemd) + names=(dispatch dispatch-systemd code-search) elif [ "${1:-}" = "--all" ]; then - names=(dispatch dispatch-systemd dispatch-s6 dispatch-electron) + names=(dispatch dispatch-systemd dispatch-s6 dispatch-electron code-search) else names=("$@") fi -- cgit v1.2.3