Skip to content

Commit 65548e1

Browse files
committed
Update devcontainer.json to include postCreateCommand for libclang-dev installation
1 parent 6c826b0 commit 65548e1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"image": "mcr.microsoft.com/devcontainers/ruby:3-4-trixie",
77
"features": {
88
"ghcr.io/devcontainers/features/rust:1": {}
9-
}
9+
},
1010

1111
// Features to add to the dev container. More info: https://containers.dev/features.
1212
// "features": {},
@@ -15,7 +15,9 @@
1515
// "forwardPorts": [],
1616

1717
// Use 'postCreateCommand' to run commands after the container is created.
18-
// "postCreateCommand": "ruby --version",
18+
// See: https://containers.dev/implementors/json_reference/#lifecycle-scripts
19+
// See: https://oxidize-rb.org/docs/faq/#q-the-build-is-failing-with-a-libclang-not-found-error
20+
"postCreateCommand": "apt update && apt install -y libclang-dev"
1921

2022
// Configure tool-specific properties.
2123
// "customizations": {},

0 commit comments

Comments
 (0)