From a4fd3f136a87fa7e11bb3c59c4b4c1d4499f08d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Vu=C4=8Dica?= Date: Tue, 30 Apr 2024 13:37:27 +0000 Subject: [PATCH] .devcontainer: Pretend bazelisk is bazel inside devcontainers, to fix vscode extensions that expect bazel. (part 2) --- .devcontainer/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index b56ae302..119d5145 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -25,3 +25,7 @@ RUN curl -fSsL -o /usr/local/bin/bazelisk https://github.com/bazelbuild/bazelisk RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ && apt-get -y install --no-install-recommends gettext clang gcc bzip2 libx11-dev libxext-dev libxrandr-dev libxrender-dev libgl-dev libglu-dev libasound-dev libalsaplayer-dev patch clangd \ && apt-get -y install --no-install-recommends libsdl1.2-dev libsdl-gfx1.2-dev libgmp3-dev autoconf automake libgl1-mesa-dev libglu1-mesa-dev + +# Pretend Bazelisk is Bazel for sake of VSCode extensions that might be tricky +# to reconfigure to understand Bazelisk is a decent intermediary. +RUN ln -s /usr/local/bin/bazelisk /usr/local/bin/bazel