1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/community/helix/helix.post-install
Clayton Craft d0d529ad88 community/helix: use tree-sitter-rust 0.24.0
Tests fail otherwise

community/helix: Add option for using tree-sitter runtime from upstream

Upstream recommends[1][2] using tree-sitter grammars/queries they ship
and not using them from other sources (e.g. tree-sitter).

This adds two new subpkgs, and a virtual `helix-tree-sitter` that
they both provide in order to prevent both from being installed at the
same time. `helix-tree-sitter-system` sets up helix to use tree-sitter
grammars from aports, and `helix-tree-sitter-vendor` packages the
tree-sitter runtime from the upstream release.

See install script change in this patch for more info. I also added a
post-upgrade install script, symlinked to post-install, so that this
message is printed on upgrade too (I think it would be helpful to show
it then).

Disabled tests also seem to run fine now.

Fixes #16336

1. https://docs.helix-editor.com/master/building-from-source.html#configuring-helixs-runtime-files
2. https://github.com/helix-editor/helix/discussions/9683
2025-05-14 09:14:15 +00:00

10 lines
528 B
Bash

#!/bin/sh
cat >&2 <<EOF
*
* Tree-sitter grammars for syntax highlighting are packaged separately.
* There are currently two options for adding tree-sitter grammar support:
* 1) Install the helix-tree-sitter-vendor package: Installs tree-sitter support from the helix project, per their recommendation.
* 2) Install helix-tree-sitter-system, plus tree-sitter-<lang> packages for individual languages, or the tree-sitter-grammars meta package: This is **not** recommended by the helix project and may not function properly
*
EOF