We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95699f3 commit 3297323Copy full SHA for 3297323
src/s-core-devcontainer/.devcontainer/s-core-local/devcontainer-feature.json
@@ -31,10 +31,13 @@
31
}
32
},
33
"onCreateCommand": "/devcontainer/features/s-core-local/on_create_command.sh",
34
- "mounts": [ {
+ // The repos in S-CORE may use different Bazel versions. This ensures that the required version is installed
35
+ "postCreateCommand": "if [ -f .bazelversion ]; then sudo apt update && sudo apt install bazel-$(cat .bazelversion); fi",
36
+ "mounts": [
37
+ {
38
"source": "${localEnv:HOME}/.cache/bazel", // default Bazel cache directory
39
"target": "/var/cache/bazel",
40
"type": "bind"
41
- ]
42
+ ]
43
0 commit comments