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
This commit is contained in:
Devansh Lodha 2026-01-29 20:17:54 +05:30 committed by GitHub
parent 5aad0c6bbb
commit 2161db53c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions

7
.devcontainer/Dockerfile Normal file
View File

@ -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

View File

@ -2,7 +2,10 @@
// README at: https://github.com/devcontainers/templates/tree/main/src/jekyll // README at: https://github.com/devcontainers/templates/tree/main/src/jekyll
{ {
"name": "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 to add to the dev container. More info: https://containers.dev/features.
"features": { "features": {