diff options
| author | Adam Malczewski <[email protected]> | 2026-06-02 17:01:23 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-02 17:01:23 +0900 |
| commit | aef796dec1700a607ea27bb4db55e4f83ae88dde (patch) | |
| tree | cec4f5923ac725fea5a8d877f6438a157215508c /bin | |
| parent | 644cfb097b845384c4a470a97328922e5d6dd129 (diff) | |
| download | dispatch-aef796dec1700a607ea27bb4db55e4f83ae88dde.tar.gz dispatch-aef796dec1700a607ea27bb4db55e4f83ae88dde.zip | |
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.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/install-pkg | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
