From f9e254e647a09a2a097fdbd2175249d1ca4af3fd Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 5 Sep 2025 09:20:08 -0700 Subject: [PATCH 1/5] [actions] temporary fix for WSL issue See https://github.com/Vampire/setup-wsl/issues/76 --- .github/workflows/windows-npm.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/windows-npm.yml b/.github/workflows/windows-npm.yml index 083afc54d6..53796640e0 100644 --- a/.github/workflows/windows-npm.yml +++ b/.github/workflows/windows-npm.yml @@ -133,6 +133,16 @@ jobs: with: distribution: ${{ matrix.wsl-distrib }} additional-packages: bash git curl ca-certificates wget + + # see https://github.com/Vampire/setup-wsl/issues/76#issuecomment-3258201135 + - shell: 'wsl-bash {0}' + run: 'sed -i s/ftp.debian.org/archive.debian.org/' + - uses: Vampire/setup-wsl@v3 + with: + distribution: ${{ matrix.wsl-distrib }} + additional-packages: bash git curl ca-certificates wget + update: 'true' + - name: Retrieve nvm on WSL run: | if [ -z "${{ matrix.method }}" ]; then From 3fa9d53dc6658abf0e806f2cc849cb426a57a802 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 5 Sep 2025 09:37:06 -0700 Subject: [PATCH 2/5] [Fix] `sh` lacks `-O`; thanks shellcheck --- nvm.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index d94389621b..01013b822f 100755 --- a/nvm.sh +++ b/nvm.sh @@ -2985,7 +2985,8 @@ nvm_check_file_permissions() { if [ ! -L "${FILE}" ] && ! nvm_check_file_permissions "${FILE}"; then return 2 fi - elif [ -e "$FILE" ] && [ ! -w "$FILE" ] && [ ! -O "$FILE" ]; then + elif [ -e "$FILE" ] && [ ! -w "$FILE" ] && [ -z "$(command find "${FILE}" -prune -user "$(command id -u)")" ]; then + # ^ file ownership check from https://www.shellcheck.net/wiki/SC3067 nvm_err "file is not writable or self-owned: $(nvm_sanitize_path "$FILE")" return 1 fi From 5c15110981ea1661b34120c028311be30ffe808e Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 5 Sep 2025 09:41:11 -0700 Subject: [PATCH 3/5] [actions] add new github asset domain to harden-runner --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d7c3b7f62b..d8559522be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,7 @@ jobs: api.github.com:443 objects.githubusercontent.com:443 raw.githubusercontent.com:443 + release-assets.githubusercontent.com:443 registry.npmjs.org:443 - uses: actions/checkout@v4 with: From 69075e99b0e4b43d31c2fe5360089f308d9cb6b0 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 5 Sep 2025 13:16:01 -0700 Subject: [PATCH 4/5] [actions] continuation of f9e254e --- .github/workflows/windows-npm.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/windows-npm.yml b/.github/workflows/windows-npm.yml index 53796640e0..3bb2f305ae 100644 --- a/.github/workflows/windows-npm.yml +++ b/.github/workflows/windows-npm.yml @@ -186,6 +186,16 @@ jobs: with: distribution: ${{ matrix.wsl-distrib }} additional-packages: bash git curl ca-certificates wget + + # see https://github.com/Vampire/setup-wsl/issues/76#issuecomment-3258201135 + - shell: 'wsl-bash {0}' + run: 'sed -i s/ftp.debian.org/archive.debian.org/' + - uses: Vampire/setup-wsl@v3 + with: + distribution: ${{ matrix.wsl-distrib }} + additional-packages: bash git curl ca-certificates wget + update: 'true' + - name: Retrieve nvm on WSL run: | if [ -z "${{ matrix.method }}" ]; then From 6326648c1f774d00b7776a92b573c21c02d74fba Mon Sep 17 00:00:00 2001 From: Sylvain Lesage Date: Wed, 20 Aug 2025 09:58:31 -0400 Subject: [PATCH 5/5] [readme] add background on io.js --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 53edac71a5..34a8504c6f 100644 --- a/README.md +++ b/README.md @@ -496,7 +496,10 @@ stevemao/left-pad ### io.js -If you want to install [io.js](https://github.com/iojs/io.js/): +> [!WARNING] +> io.js was a [fork of Node.js](https://en.wikipedia.org/wiki/Node.js#History), created in 2014 and merged back in 2015. io.js shipped v1, v2, and v3 release lines; post-merge, node.js began releasing with v4. + +If you want to install io.js: ```sh nvm install iojs