Skip to content

Commit 8645ef7

Browse files
Fix npm install error
1 parent b1723fc commit 8645ef7

File tree

1 file changed

+2
-3
lines changed
  • src/ci/docker/host-x86_64/mingw-check-tidy

1 file changed

+2
-3
lines changed

src/ci/docker/host-x86_64/mingw-check-tidy/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ ENV PATH="/node/bin:${PATH}"
3030

3131
# Install eslint
3232
COPY host-x86_64/mingw-check-tidy/eslint.version /tmp/
33-
RUN npm install eslint@$(head -n 1 /tmp/eslint.version)
3433

3534
COPY scripts/sccache.sh /scripts/
3635
RUN sh /scripts/sccache.sh
@@ -44,5 +43,5 @@ COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
4443

4544
# NOTE: intentionally uses python2 for x.py so we can test it still works.
4645
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
47-
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
48-
--stage 0 src/tools/tidy tidyselftest --extra-checks=py,cpp
46+
ENV SCRIPT TIDY_PRINT_DIFF=1 npm install eslint@$(head -n 1 /tmp/eslint.version) && \
47+
python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py,cpp

0 commit comments

Comments
 (0)