]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix umask test failures under Codespaces (#104913)
authorBrett Cannon <brett@python.org>
Thu, 25 May 2023 20:03:55 +0000 (13:03 -0700)
committerGitHub <noreply@github.com>
Thu, 25 May 2023 20:03:55 +0000 (13:03 -0700)
Also turn on the Python extension for Python code completions and bump the installed versions of wasmtime and the WASI SDK.

.devcontainer/Dockerfile
.devcontainer/devcontainer.json

index efbdcd402cdf678d42274a25ab2cf906c256c7a2..590d7834b2b8be4dfbaf106174c6e8ea0e96d313 100644 (file)
@@ -2,11 +2,11 @@ FROM docker.io/library/fedora:37
 
 ENV CC=clang
 
-ENV WASI_SDK_VERSION=19
+ENV WASI_SDK_VERSION=20
 ENV WASI_SDK_PATH=/opt/wasi-sdk
 
 ENV WASMTIME_HOME=/opt/wasmtime
-ENV WASMTIME_VERSION=7.0.0
+ENV WASMTIME_VERSION=9.0.1
 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)' && \
index 9fbaf7fddd8514419d4ea165a8760424deb57837..0dc303015df5c78ae30a514155bd8a9c259365f4 100644 (file)
@@ -9,7 +9,9 @@
         "-y",
         "which",
         "zsh",
-        "fish"
+        "fish",
+        // For umask fix below.
+        "/usr/bin/setfacl"
     ],
     "updateContentCommand": {
         // Using the shell for `nproc` usage.
             "html"
         ]
     },
+    "postCreateCommand": {
+        // https://github.com/orgs/community/discussions/26026
+        "umask fix: workspace": ["sudo", "setfacl", "-bnR", "."],
+        "umask fix: /tmp": ["sudo", "setfacl", "-bnR", "/tmp"]
+    },
     "customizations": {
         "vscode": {
             "extensions": [
                 "maelvalais.autoconf",
                 // C auto-complete.
                 "ms-vscode.cpptools",
-                // To view built docs.
-                "ms-vscode.live-server"
-                // https://github.com/microsoft/vscode-python/issues/18073
-                // "ms-python.python"
+                // To view HTML build of docs.
+                "ms-vscode.live-server",
+                // Python auto-complete.
+                "ms-python.python"
             ],
             "settings": {
                 "C_Cpp.default.compilerPath": "/usr/bin/clang",