Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/s-core-devcontainer/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
// Installs latest version from the Distribution
"installZsh": "false",
"username": "vscode",
"userUid": "1000",
"userGid": "1000",
"userUid": "1000",
"userGid": "1000",
"upgradePackages": "false" // WARNING: do *not* enable; this would include packages also from other features, which may have been pinned to a specific version
},
"ghcr.io/devcontainers-community/features/llvm": {
Expand All @@ -30,7 +30,7 @@
"version": "3.12.11"
},
"./s-core-local": {
"BAZEL_VERSION": "7.5.0",
"BAZEL_VERSION": "8.3.0",
"BUILDIFIER_VERSION": "8.2.1",
// The following sha256sum is for the binary buildifier-linux-amd64
// from the GitHub release page of buildtools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@
}
},
"onCreateCommand": "/devcontainer/features/s-core-local/on_create_command.sh",
// The repos in S-CORE may use different Bazel versions. This ensures that the required version is installed
"postCreateCommand": "if [ -f .bazelversion ]; then sudo apt update && sudo apt install bazel-$(cat .bazelversion); fi",
// The repos in S-CORE may use different Bazel versions. This ensures that the required version is installed.
// Should be removed once we provide versions of the devcontainer.
"postCreateCommand": "if [ -f .bazelversion ] && [ \"$(cat .bazelversion)\" != \"$(dpkg --list | grep 'ii bazel ' | awk '{print $3}')\" ]; then sudo apt-get update && sudo apt-get install -y --allow-downgrades bazel=$(cat .bazelversion); fi",
"mounts": [
{
"source": "${localEnv:HOME}/.cache/bazel", // default Bazel cache directory
Expand Down