Skip to content

Commit f63cf4e

Browse files
authored
Fix: Permissions of Bazel Cache Directory (#5)
* fix: permissions of Bazel cache directory * feat: add live server extension for HTML live preview
1 parent d558309 commit f63cf4e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/s-core-devcontainer/.devcontainer/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"bazelbuild.vscode-bazel",
6060
"dbaeumer.vscode-eslint",
6161
"EditorConfig.EditorConfig",
62+
"ms-vscode.live-server", // for live preview of HTML files
6263
"llvm-vs-code-extensions.vscode-clangd",
6364
"jebbs.plantuml", //to preview PlantUML diagrams
6465
"hediet.vscode-drawio", //for drawio integration

src/s-core-devcontainer/.devcontainer/s-core-local/post_create_command.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ set -euo pipefail
44
# Configure Bazel to use the cache directory that is mounted from the host
55
echo "startup --output_user_root=/var/cache/bazel" >> ~/.bazelrc
66

7+
# ensure that the Bazel cache directory has the correct permissions
8+
sudo chown -R "$(id -un):$(id -gn)" /var/cache/bazel
9+
710
# Configure clangd to remove the -fno-canonical-system-headers flag, which is
811
# GCC-specific. If not done, there is an annoying error message on the first
912
# line of every C++ file when being displayed in Visual Studio Code.

0 commit comments

Comments
 (0)