Skip to content

Commit d421224

Browse files
Bump @rollup/plugin-node-resolve from 14.1.0 to 15.0.0
1 parent 68974e0 commit d421224

File tree

5 files changed

+3262
-848
lines changed

5 files changed

+3262
-848
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ jobs:
163163
run: rake ${{ matrix.entry.prerelease }}[${{ inputs.prerel_name }}]
164164
if: ${{ inputs.prerel_name != '' && matrix.entry.prerelease != '' }}
165165
- name: rake ${{ matrix.entry.task }}
166-
run: docker run -v "$GITHUB_WORKSPACE:/build" -w /build -e "GNUMAKEFLAGS=-j$((1 + $(nproc --all)))" sha256:$BUILDER_IMAGE_ID rake ${{ matrix.entry.task }}
166+
run: docker run -v "$GITHUB_WORKSPACE:/home/me/build" -w /home/me/build -e "GNUMAKEFLAGS=-j$((1 + $(nproc --all)))" sha256:$BUILDER_IMAGE_ID rake ${{ matrix.entry.task }}
167167
- name: rake ${{ matrix.entry.test }}
168168
run: rake ${{ matrix.entry.test }}
169169
if: ${{ matrix.entry.test != '' }}

builders/wasm32-unknown-emscripten/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ RUN set -eux; \
77
apt-get install nodejs -y; \
88
apt-get clean; \
99
rm -r /var/lib/apt/lists/*
10+
11+
# Build with non-root user because `@npmcli/promise-spawn` sets `uid` and `gid` to cwd owner when the current user is root.
12+
# This permission demotion results in EACCES error at reading `$HOME/.node_modules` in `resolve` package, which is used by `@rollup/plugin-node-resolve`.
13+
# * https://github.com/npm/cli/blob/32336f6efe06bd52de1dc67c0f812d4705533ef2/node_modules/%40npmcli/promise-spawn/lib/index.js#L13
14+
RUN groupadd -r me && useradd -g me me && mkdir -p /home/me && chown me:me /home/me
15+
USER me

builders/wasm32-unknown-wasi/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,9 @@ RUN set -eux pipefail; \
4646
curl -LO "$wasi_preset_args_url"; \
4747
unzip wasi-preset-args-x86_64-unknown-linux-gnu.zip; \
4848
mv wasi-preset-args /usr/local/bin/wasi-preset-args
49+
50+
# Build with non-root user because `@npmcli/promise-spawn` sets `uid` and `gid` to cwd owner when the current user is root.
51+
# This permission demotion results in EACCES error at reading `$HOME/.node_modules` in `resolve` package, which is used by `@rollup/plugin-node-resolve`.
52+
# * https://github.com/npm/cli/blob/32336f6efe06bd52de1dc67c0f812d4705533ef2/node_modules/%40npmcli/promise-spawn/lib/index.js#L13
53+
RUN groupadd -r me && useradd -g me me && mkdir -p /home/me && chown me:me /home/me
54+
USER me

0 commit comments

Comments
 (0)