-
Notifications
You must be signed in to change notification settings - Fork 37
Description
can't install ninja after vcpkg due
replace /usr/bin/ninja? [y]es, [n]o, [A]ll, [N]one, [r]ename: NULL
in the build log, see details below. vcpkg already installed one, but quite anxient (1.11), it should be upgraded somehow, but no sucoptions for ninja feature provided.
I expect Ninja script should fix this install quirk
btw, if you change order and install vcpkg after ninja, by unknown yet reason, it overwrites ninja with old one, thus quick and dirty workaround used, see below.
how to repro
devcontainer with mcr.microsoft.com/devcontainers/base:dev-ubuntu-24.04 base image
"features": {
"ghcr.io/devcontainers/features/common-utils:2": { "username": "vscode" },
"ghcr.io/devcontainers/features/sshd:1": { "version": "latest" },
...
"ghcr.io/msclock/features/vcpkg:2": {
"vcpkgroot": "/usr/local/vcpkg",
"vcpkgdownload": "/vcpkgdownloads"
},
...
"ghcr.io/rapidsai/devcontainers/features/ninja:25": {},
...
},
"overrideFeatureInstallOrder": [
"ghcr.io/devcontainers/features/common-utils",
"ghcr.io/devcontainers/features/sshd",
"ghcr.io/devcontainers/features/git-lfs",
**"ghcr.io/msclock/features/vcpkg",
"ghcr.io/rapidsai/devcontainers/features/ninja",**
"ghcr.io/rapidsai/devcontainers/features/sccache",
"ghcr.io/rapidsai/devcontainers/features/cmake",
"ghcr.io/rapidsai/devcontainers/features/gcc",
"ghcr.io/rapidsai/devcontainers/features/llvm",
"ghcr.io/devcontainers/features/python",
"ghcr.io/devcontainers/features/node",
"ghcr.io/devcontainers/features/java",
"ghcr.io/devcontainers/features/docker-in-docker",
"ghcr.io/devcontainers/features/docker-outside-of-docker",
"ghcr.io/devcontainers/features/powershell"
],
Log
[2025-10-07T10:13:43.722Z] @devcontainers/cli **0.80.1**. Node.js v20.13.1. win32 10.0.26100 x64. [2025-10-07T10:13:45.404Z] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/common-utils:2'... [2025-10-07T10:13:47.158Z] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/sshd:1'... [2025-10-07T10:13:48.457Z] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/git-lfs:1'... [2025-10-07T10:13:49.590Z] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/python:1'... [2025-10-07T10:13:51.232Z] Resolving Feature dependencies for 'ghcr.io/rapidsai/devcontainers/features/ninja:25'... [2025-10-07T10:13:51.736Z] Resolving Feature dependencies for 'ghcr.io/rapidsai/devcontainers/features/sccache:25'... [2025-10-07T10:13:52.252Z] Resolving Feature dependencies for 'ghcr.io/rapidsai/devcontainers/features/cmake:25'... [2025-10-07T10:13:52.888Z] Resolving Feature dependencies for 'ghcr.io/rapidsai/devcontainers/features/llvm:25'... [2025-10-07T10:13:53.720Z] Resolving Feature dependencies for 'ghcr.io/msclock/features/vcpkg:2'... [2025-10-07T10:13:55.252Z] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/powershell:1'... [2025-10-07T10:13:56.338Z] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/node:1'... [2025-10-07T10:13:57.372Z] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/java:1'... [2025-10-07T10:14:08.540Z] Soft-dependency 'ghcr.io/devcontainers/features/oryx' is not required. Removing from installation order... [2025-10-07T10:14:08.540Z] Soft-dependency 'ghcr.io/devcontainers/features/git' is not required. Removing from installation order... [2025-10-07T10:14:09.684Z] Files to omit: '' [2025-10-07T10:14:10.851Z] Files to omit: '' [2025-10-07T10:14:11.717Z] Files to omit: '' [2025-10-07T10:14:12.698Z] Files to omit: '' [2025-10-07T10:14:13.757Z] Files to omit: '' [2025-10-07T10:14:14.836Z] Files to omit: '' [2025-10-07T10:14:15.817Z] Files to omit: '' [2025-10-07T10:14:16.800Z] Files to omit: '' [2025-10-07T10:14:17.687Z] Files to omit: '' [2025-10-07T10:14:18.630Z] Files to omit: '' [2025-10-07T10:14:19.592Z] Files to omit: '' [2025-10-07T10:14:20.692Z] Files to omit: '' [2025-10-07T10:14:20.714Z] Start: Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f C:\Users\bwx931050\AppData\Local\Temp\devcontainercli\container-features\0.80.1-1759832025403\Dockerfile-with-features -t async-profiler:devcontainer --target dev_containers_target_stage --build-arg devcontainercli=true --pull --platform=linux/amd64 --network=host --add-host=host.docker.internal:host-gateway --output type=docker --build-context dev_containers_feature_content_source=C:\Users\bwx931050\AppData\Local\Temp\devcontainercli\container-features\0.80.1-1759832025403 --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp r:\src\asprof\async-profiler [2025-10-07T10:14:21.474Z] #0 building with "desktop-linux" instance using docker driver [2025-10-07T10:14:21.474Z] #1 [internal] load build definition from Dockerfile-with-features [2025-10-07T10:14:21.637Z] #1 transferring dockerfile: 18.93kB done #1 DONE 0.0s [2025-10-07T10:14:21.638Z] #2 resolve image config for docker-image://docker.io/docker/dockerfile:1.17 [2025-10-07T10:14:22.855Z] #2 DONE 1.4s [2025-10-07T10:14:23.021Z] #3 docker-image://docker.io/docker/dockerfile:1.17@sha256:38387523653efa0039f8e1c89bb74a30504e76ee9f565e25c9a09841f9427b05 #3 resolve docker.io/docker/dockerfile:1.17@sha256:38387523653efa0039f8e1c89bb74a30504e76ee9f565e25c9a09841f9427b05 0.0s done #3 CACHED [2025-10-07T10:14:23.022Z] #4 [internal] load metadata for mcr.microsoft.com/devcontainers/base:dev-ubuntu-24.04 [2025-10-07T10:14:23.179Z] #4 ... #5 [context dev_containers_feature_content_source] load .dockerignore #5 transferring dev_containers_feature_content_source: 2B done #5 DONE 0.0s [2025-10-07T10:14:23.329Z] [2025-10-07T10:14:23.329Z] #4 [internal] load metadata for **mcr.microsoft.com/devcontainers/base:dev-ubuntu-24.04** [2025-10-07T10:14:23.640Z] #4 DONE 0.6s [2025-10-07T10:14:23.741Z] #6 [internal] load .dockerignore #6 transferring context: 2B done [2025-10-07T10:14:23.741Z] #6 DONE 0.0s #7 [context dev_containers_feature_content_source] load from client #7 transferring dev_containers_feature_content_source: 17.03kB done #7 DONE 0.0s #8 [dev_container_auto_added_stage_label 1/6] FROM mcr.microsoft.com/devcontainers/base:dev-ubuntu-24.04@sha256:c78cbe5512a9981276e20ae9aa5ed88e2e3413b9d3a4657f882201ab78cb1e2c #8 resolve mcr.microsoft.com/devcontainers/base:dev-ubuntu-24.04@sha256:c78cbe5512a9981276e20ae9aa5ed88e2e3413b9d3a4657f882201ab78cb1e2c 0.0s done #8 DONE 0.0s #9 [internal] load build context #9 transferring context: 121B done #9 DONE 0.0s #10 [context dev_containers_feature_content_source] load from client #10 transferring dev_containers_feature_content_source: 41.52kB 0.0s done #10 DONE 0.0s #11 [context dev_containers_feature_content_source] load from client #11 transferring dev_containers_feature_content_source: 15.23kB done #11 DONE 0.0s #12 [context dev_containers_feature_content_source] load from client #12 transferring dev_containers_feature_content_source: 15.35kB 0.0s done #12 DONE 0.0s #13 [context dev_containers_feature_content_source] load from client #13 transferring dev_containers_feature_content_source: 20.70kB done #13 DONE 0.0s #14 [context dev_containers_feature_content_source] load from client #14 transferring dev_containers_feature_content_source: 30.62kB 0.0s done #14 DONE 0.0s #15 [context dev_containers_feature_content_source] load from client #15 transferring dev_containers_feature_content_source: 19.27kB 0.0s done #15 DONE 0.0s #16 [context dev_containers_feature_content_source] load from client [2025-10-07T10:14:23.880Z] #16 transferring dev_containers_feature_content_source: 266.54kB 0.0s done #16 DONE 0.1s #17 [context dev_containers_feature_content_source] load from client #17 DONE 0.1s [2025-10-07T10:14:23.881Z] #18 [context dev_containers_feature_content_source] load from client #18 transferring dev_containers_feature_content_source: 19.65kB 0.0s done #18 DONE 0.1s #19 [context dev_containers_feature_content_source] load from client #19 transferring dev_containers_feature_content_source: 101B done #19 DONE 0.1s #20 [context dev_containers_feature_content_source] load from client #20 transferring dev_containers_feature_content_source: 15.98kB done #20 DONE 0.1s #21 [context dev_containers_feature_content_source] load from client #21 transferring dev_containers_feature_content_source: 45.68kB done #21 DONE 0.1s #22 [dev_container_auto_added_stage_label 4/6] RUN if [[ -z "$devcontainercli" ]] ; then printf "\nATTN: This Dockerfile needs to be built with devcontainer-supported IDE!" && exit 1; else printf "IDE detected: $devcontainercli"; fi #22 CACHED #23 [dev_containers_target_stage 4/15] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=common-utils_0,target=/tmp/build-features-src/common-utils_0 cp -ar /tmp/build-features-src/common-utils_0 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/common-utils_0 && cd /tmp/dev-container-features/common-utils_0 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/common-utils_0 #23 CACHED #24 [dev_containers_target_stage 5/15] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=sshd_1,target=/tmp/build-features-src/sshd_1 cp -ar /tmp/build-features-src/sshd_1 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/sshd_1 && cd /tmp/dev-container-features/sshd_1 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/sshd_1 #24 CACHED #25 [dev_container_auto_added_stage_label 5/6] RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhistory/.bash_history" && echo "$SNIPPET" >> "/root/.bashrc" #25 CACHED #26 [dev_containers_target_stage 1/15] RUN mkdir -p /tmp/dev-container-features #26 CACHED #27 [dev_containers_feature_content_normalize 1/2] COPY --from=dev_containers_feature_content_source devcontainer-features.builtin.env /tmp/build-features/ #27 CACHED #28 [dev_containers_target_stage 3/15] RUN echo "_CONTAINER_USER_HOME=$( (command -v getent >/dev/null 2>&1 && getent passwd 'root' || grep -E '^root|^[^:]*:[^:]*:root:' /etc/passwd || true) | cut -d: -f6)" >> /tmp/dev-container-features/devcontainer-features.builtin.env && echo "_REMOTE_USER_HOME=$( (command -v getent >/dev/null 2>&1 && getent passwd 'vscode' || grep -E '^vscode|^[^:]*:[^:]*:vscode:' /etc/passwd || true) | cut -d: -f6)" >> /tmp/dev-container-features/devcontainer-features.builtin.env #28 CACHED #29 [dev_container_auto_added_stage_label 2/6] COPY .devcontainer/certs/all.crt /usr/local/share/ca-certificates/all.crt #29 CACHED #30 [dev_containers_feature_content_normalize 2/2] RUN chmod -R 0755 /tmp/build-features/ #30 CACHED #31 [dev_container_auto_added_stage_label 3/6] RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=apt-amd64 --mount=type=cache,target=/var/lib/apt,sharing=locked,id=apt-lib-amd64 echo "Building devcontainer for amd64" && apt-get update && export DEBIAN_FRONTEND=noninteractive && update-ca-certificates && apt-get install -y time gdb far2l -q --no-install-recommends && echo "Building devcontainer for amd64 done" #31 CACHED #32 [dev_containers_target_stage 2/15] COPY --from=dev_containers_feature_content_normalize /tmp/build-features/ /tmp/dev-container-features #32 CACHED #33 [dev_containers_target_stage 6/15] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=git-lfs_2,target=/tmp/build-features-src/git-lfs_2 cp -ar /tmp/build-features-src/git-lfs_2 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/git-lfs_2 && cd /tmp/dev-container-features/git-lfs_2 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/git-lfs_2 #33 CACHED #34 [dev_containers_target_stage 7/15] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=vcpkg_3,target=/tmp/build-features-src/vcpkg_3 cp -ar /tmp/build-features-src/vcpkg_3 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/vcpkg_3 && cd /tmp/dev-container-features/vcpkg_3 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/vcpkg_3 #34 0.090 =========================================================================== #34 0.090 Feature : Vcpkg Tool #34 0.090 Description : A vcpkg tool feature #34 0.090 Id : ghcr.io/msclock/features/vcpkg #34 0.090 Version : 2.0.0 #34 0.090 Documentation : https://github.com/msclock/features/tree/main/src/vcpkg #34 0.090 Options : #34 0.090 VCPKGVERSION="latest" #34 0.090 VCPKGROOT="/usr/local/vcpkg" #34 0.090 VCPKGDOWNLOAD="/vcpkgdownloads" #34 0.090 =========================================================================== [2025-10-07T10:14:24.051Z] #34 0.110 find: '/var/lib/apt/lists/*': No such file or directory #34 0.110 [INFO]: Running apt-get update... [2025-10-07T10:14:24.912Z] #34 1.121 Get:1 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB] [2025-10-07T10:14:25.096Z] #34 1.156 Get:2 http://archive.ubuntu.com/ubuntu noble InRelease [256 kB] [2025-10-07T10:14:25.096Z] [2025-10-07T10:14:25.474Z] #34 1.680 Get:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB] [2025-10-07T10:14:26.087Z] #34 2.296 Get:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB] [2025-10-07T10:14:26.606Z] #34 2.815 Get:5 http://archive.ubuntu.com/ubuntu noble/restricted amd64 Packages [117 kB] [2025-10-07T10:14:26.838Z] #34 3.047 Get:6 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [2478 kB] [2025-10-07T10:14:29.245Z] #34 5.454 Get:7 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages [1808 kB] [2025-10-07T10:14:31.508Z] #34 7.718 Get:8 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [1519 kB] [2025-10-07T10:14:31.859Z] #34 8.069 Get:9 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Packages [34.6 kB] [2025-10-07T10:14:35.882Z] #34 12.09 Get:10 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [1138 kB] [2025-10-07T10:14:42.614Z] #34 18.82 Get:11 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages [19.3 MB] [2025-10-07T10:14:44.798Z] #34 21.01 Get:12 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 Packages [331 kB] [2025-10-07T10:14:48.201Z] #34 24.41 Get:13 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [2612 kB] [2025-10-07T10:14:50.842Z] #34 27.05 Get:14 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1925 kB] [2025-10-07T10:14:51.304Z] #34 27.51 Get:15 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Packages [38.9 kB] [2025-10-07T10:14:51.304Z] [2025-10-07T10:14:53.726Z] #34 29.93 Get:16 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [1882 kB] [2025-10-07T10:14:54.205Z] #34 30.41 Get:17 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 Packages [49.4 kB] [2025-10-07T10:14:54.511Z] #34 30.72 Get:18 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Packages [33.9 kB] [2025-10-07T10:14:54.672Z] #34 30.73 Fetched 33.9 MB in 31s (1109 kB/s) #34 30.73 Reading package lists... [2025-10-07T10:14:55.068Z] [2025-10-07T10:14:55.234Z] #34 31.29 Reading package lists... [2025-10-07T10:14:55.641Z] [2025-10-07T10:14:55.799Z] #34 31.86 Building dependency tree... #34 32.01 Reading state information... [2025-10-07T10:14:55.938Z] #34 32.15 build-essential is already the newest version (12.10ubuntu1). #34 32.15 curl is already the newest version (8.5.0-2ubuntu10.6). #34 32.15 ca-certificates is already the newest version (20240203). #34 32.15 zip is already the newest version (3.0-13ubuntu0.2). #34 32.15 unzip is already the newest version (6.0-28ubuntu4.1). #34 32.15 procps is already the newest version (2:4.0.4-4ubuntu3.2). #34 32.15 bash-completion is already the newest version (1:2.11-8). #34 32.15 git is already the newest version (1:2.43.0-1ubuntu7.3). #34 32.15 The following additional packages will be installed: [2025-10-07T10:14:56.127Z] #34 32.15 libpkgconf3 pkgconf pkgconf-bin #34 32.15 Suggested packages: #34 32.15 python3 #34 32.19 The following NEW packages will be installed: #34 32.19 libpkgconf3 ninja-build pkg-config pkgconf pkgconf-bin [2025-10-07T10:14:56.341Z] #34 32.55 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. #34 32.55 Need to get 204 kB of archives. #34 32.55 After this operation, 646 kB of additional disk space will be used. #34 32.55 Get:1 http://archive.ubuntu.com/ubuntu noble/main amd64 libpkgconf3 amd64 1.8.1-2build1 [30.7 kB] [2025-10-07T10:14:56.844Z] #34 33.05 Get:2 http://archive.ubuntu.com/ubuntu noble/universe amd64 ninja-build amd64 1.11.1-2 [129 kB] [2025-10-07T10:14:57.146Z] #34 33.35 Get:3 http://archive.ubuntu.com/ubuntu noble/main amd64 pkgconf-bin amd64 1.8.1-2build1 [20.7 kB] [2025-10-07T10:14:57.445Z] #34 33.65 Get:4 http://archive.ubuntu.com/ubuntu noble/main amd64 pkgconf amd64 1.8.1-2build1 [16.8 kB] [2025-10-07T10:14:57.656Z] #34 33.86 Get:5 http://archive.ubuntu.com/ubuntu noble/main amd64 pkg-config amd64 1.8.1-2build1 [7264 B] [2025-10-07T10:14:58.323Z] #34 34.53 Fetched 204 kB in 2s (122 kB/s) [2025-10-07T10:14:58.429Z] #34 34.55 Selecting previously unselected package libpkgconf3:amd64. #34 34.55 (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 22950 files and directories currently installed.) #34 34.59 Preparing to unpack .../libpkgconf3_1.8.1-2build1_amd64.deb ... #34 34.59 Unpacking libpkgconf3:amd64 (1.8.1-2build1) ... #34 34.61 Selecting previously unselected package ninja-build. #34 34.61 Preparing to unpack .../ninja-build_1.11.1-2_amd64.deb ... #34 34.62 Unpacking ninja-build (1.11.1-2) ... #34 34.64 Selecting previously unselected package pkgconf-bin. [2025-10-07T10:14:58.614Z] #34 34.64 Preparing to unpack .../pkgconf-bin_1.8.1-2build1_amd64.deb ... #34 34.64 Unpacking pkgconf-bin (1.8.1-2build1) ... #34 34.66 Selecting previously unselected package pkgconf:amd64. #34 34.66 Preparing to unpack .../pkgconf_1.8.1-2build1_amd64.deb ... #34 34.66 Unpacking pkgconf:amd64 (1.8.1-2build1) ... #34 34.68 Selecting previously unselected package pkg-config:amd64. #34 34.68 Preparing to unpack .../pkg-config_1.8.1-2build1_amd64.deb ... #34 34.68 Unpacking pkg-config:amd64 (1.8.1-2build1) ... #34 34.70 Setting up ninja-build (1.11.1-2) ... #34 34.71 Setting up libpkgconf3:amd64 (1.8.1-2build1) ... #34 34.72 Setting up pkgconf-bin (1.8.1-2build1) ... #34 34.72 Setting up pkgconf:amd64 (1.8.1-2build1) ... #34 34.73 Setting up pkg-config:amd64 (1.8.1-2build1) ... #34 34.73 Processing triggers for man-db (2.12.0-4build2) ... #34 34.82 Processing triggers for libc-bin (2.39-0ubuntu8.6) ... [2025-10-07T10:14:58.715Z] #34 34.92 [INFO]: Preset VCPKG_VERSION: latest [2025-10-07T10:14:58.871Z] #34 34.93 Cloning into '/usr/local/vcpkg'... [2025-10-07T10:15:05.169Z] #34 41.38 [INFO]: Using VCPKG_VRESION: latest [2025-10-07T10:15:05.326Z] #34 41.38 Downloading vcpkg-glibc... [2025-10-07T10:15:08.413Z] #34 44.62 vcpkg package management program version 2025-09-03-4580816534ed8fd9634ac83d46471440edd82dfe #34 44.62 #34 44.62 See LICENSE.txt for license information. [2025-10-07T10:15:08.570Z] #34 44.62 Telemetry #34 44.62 --------- #34 44.62 vcpkg collects usage data in order to help us improve your experience. #34 44.62 The data collected by Microsoft is anonymous. #34 44.62 You can opt-out of telemetry by re-running the bootstrap-vcpkg script with -disableMetrics, #34 44.62 passing --disable-metrics to vcpkg on the command line, #34 44.62 or by setting the VCPKG_DISABLE_METRICS environment variable. #34 44.62 #34 44.62 Read more about vcpkg telemetry at docs/about/privacy.md #34 44.63 Computing installation plan... #34 44.63 A suitable version of cmake was not found (required v3.30.1). #34 44.63 Downloading https://github.com/Kitware/CMake/releases/download/v3.30.1/cmake-3.30.1-linux-x86_64.tar.gz -> cmake-3.30.1-linux-x86_64.tar.gz [2025-10-07T10:15:21.506Z] #34 57.71 Successfully downloaded cmake-3.30.1-linux-x86_64.tar.gz #34 57.71 Extracting cmake... [2025-10-07T10:15:22.374Z] #34 58.58 The following packages will be built and installed: #34 58.58 vcpkg-cmake:x64-linux@2024-04-23 #34 58.58 Detecting compiler hash for triplet x64-linux... [2025-10-07T10:15:26.761Z] #34 62.97 Compiler found: /usr/bin/c++ [2025-10-07T10:15:26.928Z] #34 62.97 Restored 0 package(s) from /root/.cache/vcpkg/archives in 9.9 us. Use --debug to see more details. #34 62.97 Installing 1/1 vcpkg-cmake:x64-linux@2024-04-23... #34 62.97 Building vcpkg-cmake:x64-linux@2024-04-23... #34 62.98 -- Installing: /usr/local/vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/vcpkg_cmake_configure.cmake #34 62.98 -- Installing: /usr/local/vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake #34 62.98 -- Installing: /usr/local/vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake #34 62.98 -- Installing: /usr/local/vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/vcpkg-port-config.cmake #34 62.98 -- Installing: /usr/local/vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/copyright #34 62.98 -- Performing post-build validation #34 62.98 Starting submission of vcpkg-cmake:x64-linux@2024-04-23 to 1 binary cache(s) in the background #34 62.98 Elapsed time to handle vcpkg-cmake:x64-linux: 10.5 ms #34 62.98 vcpkg-cmake:x64-linux package ABI: 47338295cb92f5cf870939cad70d0f103fed2eb13f36bf36d8faf88c98a8dcd4 #34 62.98 Total install time: 10.6 ms #34 62.98 Installed contents are licensed to you by owners. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. [2025-10-07T10:15:26.928Z] #34 62.98 Packages installed in this vcpkg installation declare the following licenses: #34 62.98 MIT #34 62.98 Waiting for 1 remaining binary cache submissions... #34 62.99 Completed submission of vcpkg-cmake:x64-linux@2024-04-23 to 1 binary cache(s) in 4.04 ms (1/1) #34 62.99 All requested installations completed successfully in: 10.6 ms [2025-10-07T10:15:27.590Z] #34 63.80 [INFO]: Updating /etc/bash.bashrc and /etc/zsh/zshrc... [2025-10-07T10:15:27.755Z] #34 63.96 Adding vcpkg completion entry to /home/vscode/.bashrc. [2025-10-07T10:15:27.909Z] #34 63.97 [SUCCESS]: Install vcpkg successfully. [2025-10-07T10:15:28.037Z] #34 DONE 64.2s [2025-10-07T10:15:28.188Z] #35 [dev_containers_target_stage 8/15] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=ninja_4,target=/tmp/build-features-src/ninja_4 cp -ar /tmp/build-features-src/ninja_4 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/ninja_4 && cd /tmp/dev-container-features/ninja_4 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/ninja_4 [2025-10-07T10:15:28.200Z] #35 0.162 =========================================================================== #35 0.162 Feature : Ninja build #35 0.162 Description : A feature to install ninja-build #35 0.162 Id : ghcr.io/rapidsai/devcontainers/features/ninja #35 0.162 Version : 25.12.0 #35 0.162 Documentation : #35 0.162 Options : #35 0.162 VERSION="latest" #35 0.162 =========================================================================== [2025-10-07T10:15:28.414Z] #35 0.175 Appending to /etc/profile... #35 0.226 Installing ninja-build... [2025-10-07T10:15:29.157Z] #35 1.119 NINJA_VERSION=1.13.1 [2025-10-07T10:15:30.895Z] #35 2.857 Archive: /tmp/ninja-linux.zip [2025-10-07T10:15:30.938Z] #35 2.857 replace /usr/bin/ninja? [y]es, [n]o, [A]ll, [N]one, [r]ename: NULL #35 2.857 (EOF or read error, treating as "[N]one" ...) **#35 2.858 ERROR: Feature "Ninja build" (ghcr.io/rapidsai/devcontainers/features/ninja) failed to install!** #35 ERROR: process "/bin/sh -c cp -ar /tmp/build-features-src/ninja_4 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/ninja_4 && cd /tmp/dev-container-features/ninja_4 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/ninja_4" did not complete successfully: exit code: 1 ------
quick workaround in post create command
not sure who is guilty (vcpkg? ninja? devcontainers?), quick and dirty reinstall ninja after container created helped to go further
# TODO: vcpkg overwrite ninja from apt which is 1.11, but we need to keep 1.13.1
rm -f /tmp/ninja-linux.zip
curl -SL https://github.com/ninja-build/ninja/releases/download/v1.13.1/ninja-linux.zip -o /tmp/ninja-linux.zip
unzip /tmp/ninja-linux.zip -d /tmp
sudo mv -f /usr/bin/ninja /usr/bin/ninja.bak
sudo mv -f /tmp/ninja /usr/bin/ninja
rm -f /tmp/ninja-linux.zip
but better to be ready for update / upgrade ninja scenario and fix an issue.