From 2161db53c9be02e4bed6e72859d9f06b7993041d Mon Sep 17 00:00:00 2001 From: Devansh Lodha Date: Thu, 29 Jan 2026 20:17:54 +0530 Subject: [PATCH] fix(devcontainer): remove broken yarn apt source to fix build (#3490) This change introduces a Dockerfile to the devcontainer configuration that removes the broken Yarn repository from `/etc/apt/sources.list.d/`. This prevents `apt-get update` from failing due to an expired or missing GPG key for the Yarn repository. Fixes #3487 --- .devcontainer/Dockerfile | 7 +++++++ .devcontainer/devcontainer.json | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .devcontainer/Dockerfile diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..e511a1b --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,7 @@ +FROM mcr.microsoft.com/devcontainers/jekyll + +# Fix: Remove the broken Yarn repository from the apt sources. +# This prevents 'apt-get update' from failing due to the missing GPG key. +# (Yarn is already provided by the dev container features/nvm, so this system repo is unnecessary) +# See issue #3487 +RUN rm -f /etc/apt/sources.list.d/yarn.list diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 46bd1ed..041b0e9 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,7 +2,10 @@ // README at: https://github.com/devcontainers/templates/tree/main/src/jekyll { "name": "Jekyll", - "image": "mcr.microsoft.com/devcontainers/jekyll", + // Using a Dockerfile to fix the broken Yarn repository. See issue #3487. + "build": { + "dockerfile": "Dockerfile" + }, // Features to add to the dev container. More info: https://containers.dev/features. "features": {