From 51f5d6cd3c62e4347ddc31d223dbe43e2c1913f8 Mon Sep 17 00:00:00 2001 From: Maciej Lebiest Date: Wed, 3 Apr 2024 19:48:40 +0200 Subject: [PATCH] fix installing lsp servers not compatible with arm64 --- Containerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Containerfile b/Containerfile index 112c9bb..2ff3bdb 100644 --- a/Containerfile +++ b/Containerfile @@ -38,7 +38,6 @@ ENV MASON_PKGS=" \ html-lsp \ intelephense \ json-lsp \ - lemminx \ lua-language-server \ marksman \ phpcs \ @@ -50,8 +49,9 @@ ENV MASON_PKGS=" \ yaml-language-server \ markdownlint \ ansible-language-server \ - ansible-lint \ - helm-ls" + ansible-lint" + +ENV MASON_PKGS_NO_ARM="lemminx helm-ls" COPY . /root/.config/nvim @@ -62,9 +62,8 @@ RUN dnf5 install -y \ dnf5 remove -y ${BUILD_ONLY_PKGS} && \ dnf5 -y autoremove && \ dnf5 clean all && \ - nvim --headless \ - +"MasonInstall ${MASON_PKGS}" \ - +qa && \ + nvim --headless +"MasonInstall ${MASON_PKGS}" +qa || exit 1 ; \ + nvim --headless +"MasonInstall ${MASON_PKGS_NO_ARM}" +qa ; \ echo '[ -f /usr/share/fzf/shell/key-bindings.bash ] && source /usr/share/fzf/shell/key-bindings.bash' >> /root/.bashrc ENTRYPOINT [ "/usr/bin/nvim" ]