Fix umask test failures under Codespaces (#104913)

Also turn on the Python extension for Python code completions and bump the installed versions of wasmtime and the WASI SDK.
This commit is contained in:
Brett Cannon 2023-05-25 13:03:55 -07:00 committed by GitHub
parent 2b7027d0b2
commit 08888650aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 7 deletions

View File

@ -2,11 +2,11 @@ FROM docker.io/library/fedora:37
ENV CC=clang ENV CC=clang
ENV WASI_SDK_VERSION=19 ENV WASI_SDK_VERSION=20
ENV WASI_SDK_PATH=/opt/wasi-sdk ENV WASI_SDK_PATH=/opt/wasi-sdk
ENV WASMTIME_HOME=/opt/wasmtime ENV WASMTIME_HOME=/opt/wasmtime
ENV WASMTIME_VERSION=7.0.0 ENV WASMTIME_VERSION=9.0.1
ENV WASMTIME_CPU_ARCH=x86_64 ENV WASMTIME_CPU_ARCH=x86_64
RUN dnf -y --nodocs --setopt=install_weak_deps=False install /usr/bin/{blurb,clang,curl,git,ln,tar,xz} 'dnf-command(builddep)' && \ RUN dnf -y --nodocs --setopt=install_weak_deps=False install /usr/bin/{blurb,clang,curl,git,ln,tar,xz} 'dnf-command(builddep)' && \

View File

@ -9,7 +9,9 @@
"-y", "-y",
"which", "which",
"zsh", "zsh",
"fish" "fish",
// For umask fix below.
"/usr/bin/setfacl"
], ],
"updateContentCommand": { "updateContentCommand": {
// Using the shell for `nproc` usage. // Using the shell for `nproc` usage.
@ -22,6 +24,11 @@
"html" "html"
] ]
}, },
"postCreateCommand": {
// https://github.com/orgs/community/discussions/26026
"umask fix: workspace": ["sudo", "setfacl", "-bnR", "."],
"umask fix: /tmp": ["sudo", "setfacl", "-bnR", "/tmp"]
},
"customizations": { "customizations": {
"vscode": { "vscode": {
"extensions": [ "extensions": [
@ -31,10 +38,10 @@
"maelvalais.autoconf", "maelvalais.autoconf",
// C auto-complete. // C auto-complete.
"ms-vscode.cpptools", "ms-vscode.cpptools",
// To view built docs. // To view HTML build of docs.
"ms-vscode.live-server" "ms-vscode.live-server",
// https://github.com/microsoft/vscode-python/issues/18073 // Python auto-complete.
// "ms-python.python" "ms-python.python"
], ],
"settings": { "settings": {
"C_Cpp.default.compilerPath": "/usr/bin/clang", "C_Cpp.default.compilerPath": "/usr/bin/clang",