Skip to content

Commit 2d79a23

Browse files
committed
fix(ci): build tree-sitter from main branch
tree-sitter-cl requires libtree-sitter.so.0.27, but the latest official release is only v0.26.3. Build from main branch to get the required 0.27+ version.
1 parent f7c7e72 commit 2d79a23

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docker/Dockerfile-AppImage

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ FROM ubuntu:22.04 AS build
22

33
RUN apt-get update && apt-get install -y curl bzip2 git libzstd-dev file libncurses-dev build-essential
44

5-
# Build tree-sitter 0.27+ from source (Ubuntu 22.04 only has 0.20.x)
5+
# Build tree-sitter from main branch (tree-sitter-cl requires 0.27+ which is unreleased)
66
WORKDIR /tmp
7-
RUN curl -L -o tree-sitter.tar.gz https://github.com/tree-sitter/tree-sitter/archive/refs/tags/v0.27.2.tar.gz && \
8-
tar xzf tree-sitter.tar.gz && \
9-
cd tree-sitter-0.27.2 && \
7+
RUN git clone --depth 1 https://github.com/tree-sitter/tree-sitter.git && \
8+
cd tree-sitter && \
109
make -j$(nproc) && \
1110
make install && \
1211
ldconfig

0 commit comments

Comments
 (0)