Skip to content

Commit 928adfd

Browse files
Suppress pnpm upgrade notices in logs (#866)
1 parent 189cfe2 commit 928adfd

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

image/base/release.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ RUN cd /var/www/discourse &&\
1010
sudo -u discourse bundle config --local path ./vendor/bundle &&\
1111
sudo -u discourse bundle config --local without test development &&\
1212
sudo -u discourse bundle install --jobs $(($(nproc) - 1)) &&\
13-
sudo -u discourse /bin/bash -c 'if [ -f yarn.lock ]; then yarn install --frozen-lockfile && yarn cache clean; else pnpm install --frozen-lockfile; fi' &&\
13+
sudo -u discourse /bin/bash -c 'if [ -f yarn.lock ]; then yarn install --frozen-lockfile && yarn cache clean; else CI=1 pnpm install --frozen-lockfile; fi' &&\
1414
find /var/www/discourse/vendor/bundle -name cache -not -path '*/gems/*' -type d -exec rm -rf {} + &&\
1515
find /var/www/discourse/vendor/bundle -name tmp -type d -exec rm -rf {} +

image/discourse_dev/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ RUN --mount=type=bind,src=/repo,from=repo-fetcher,target=/tmp/discourse-clone,re
7373
# Warm global yarn cache
7474
RUN --mount=type=bind,src=/repo,from=repo-fetcher,target=/tmp/discourse-clone,readwrite \
7575
cd /tmp/discourse-clone \
76-
&& (if [ -f yarn.lock ]; then yarn install; else pnpm install; fi)
76+
&& (if [ -f yarn.lock ]; then yarn install; else CI=1 pnpm install; fi)
7777

7878
USER root

image/discourse_test/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ FROM with_browsers AS release
3030

3131
RUN cd /var/www/discourse &&\
3232
sudo -u discourse bundle install --jobs $(($(nproc) - 1)) &&\
33-
sudo -E -u discourse -H /bin/bash -c 'if [ -f yarn.lock ]; then (yarn install && yarn cache clean); else pnpm install; fi'
33+
sudo -E -u discourse -H /bin/bash -c 'if [ -f yarn.lock ]; then (yarn install && yarn cache clean); else CI=1 pnpm install; fi'
3434

3535
RUN cd /var/www/discourse && sudo -E -u discourse -H bundle exec rake plugin:install_all_official &&\
3636
LOAD_PLUGINS=1 sudo -E -u discourse -H bundle exec rake plugin:install_all_gems &&\

launcher_go/v2/test/templates/web.template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ run:
188188
if [ -f yarn.lock ]; then
189189
su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
190190
else
191-
su discourse -c 'pnpm install --frozen-lockfile'
191+
su discourse -c 'CI=1 pnpm install --frozen-lockfile'
192192
fi
193193
194194
- exec:

templates/web.template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ run:
189189
if [ -f yarn.lock ]; then
190190
su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
191191
else
192-
su discourse -c 'pnpm install --frozen-lockfile'
192+
su discourse -c 'CI=1 pnpm install --frozen-lockfile'
193193
fi
194194
195195
- exec:

0 commit comments

Comments
 (0)