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: diff --git a/.github/workflows/windows-npm.yml b/.github/workflows/windows-npm.yml index 083afc54d6..3bb2f305ae 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 @@ -176,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 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 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