Skip to content

Commit c85af4d

Browse files
superironpandallin2abdurriq
authored
fix(node): Use dl.yarnpkg.com for Yarn GPG key on all Debian versions (#1547)
* fix(node): Use dl.yarnpkg.com for Yarn GPG key on all Debian versions Branch-Creation-Time: 2026-01-29T00:16:22+0000 * bump version to 1.6.5 --------- Co-authored-by: llin2 <[email protected]> Co-authored-by: Abdurrahmaan Iqbal <[email protected]>
1 parent 362dfda commit c85af4d

2 files changed

Lines changed: 5 additions & 11 deletions

File tree

src/node/devcontainer-feature.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "node",
3-
"version": "1.7.0",
3+
"version": "1.7.1",
44
"name": "Node.js (via nvm), yarn and pnpm.",
55
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/node",
66
"description": "Installs Node.js, nvm, yarn, pnpm, and needed dependencies.",
@@ -78,4 +78,4 @@
7878
"installsAfter": [
7979
"ghcr.io/devcontainers/features/common-utils"
8080
]
81-
}
81+
}

src/node/install.sh

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -203,15 +203,9 @@ install_yarn() {
203203
# via apt-get on Debian systems
204204
if ! type yarn >/dev/null 2>&1; then
205205
# Import key safely (new method rather than deprecated apt-key approach) and install
206-
if [ "${VERSION_CODENAME}" = "trixie" ]; then
207-
# Trixie requires fetching the key from keys.openpgp.org
208-
mkdir -p /etc/apt/keyrings
209-
curl -fsSL "https://keys.openpgp.org/vks/v1/by-fingerprint/72ECF46A56B4AD39C907BBB71646B01B86E50310" | gpg --dearmor --yes -o /etc/apt/keyrings/yarn-archive-keyring.gpg
210-
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/yarn-archive-keyring.gpg] https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
211-
else
212-
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarn-archive-keyring.gpg
213-
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/yarn-archive-keyring.gpg] https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
214-
fi
206+
mkdir -p /etc/apt/keyrings
207+
curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor --yes -o /etc/apt/keyrings/yarn-archive-keyring.gpg
208+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/yarn-archive-keyring.gpg] https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
215209
apt-get update
216210
apt-get -y install --no-install-recommends yarn
217211
else

0 commit comments

Comments
 (0)