Skip to content

Commit d853d2e

Browse files
authored
Merge branch 'master' into GSRE-2341
2 parents 0e3e4bf + 64303d5 commit d853d2e

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

playbooks/roles/edxapp/tasks/deploy.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,21 @@
288288

289289
# --no-save is passed as a flag to npm install to avoid saving these dependencies to package.json. Otherwise,
290290
# running npm install without this flag causes modifications to the package.json and package-lock.json
291-
# files. In turn, these modified files cause issues with working with the edxapp repository.
291+
# files. In turn, these modified files cause issues with working with the edxapp repository because,
292+
# while doing the setup "checkout edx-platform repo into {{ edxapp_code_dir }}" fails.
293+
# This only fails in sandbox, prod and stg are fine without this change (--no-save)
294+
#
295+
# See https://github.com/edx/configuration/pull/256 for more details.
292296

293297
- name: Install private node dependencies
294-
shell: "easy_install --version && npm install --no-save {{ item.name }}"
295-
with_items:
296-
- "{{ EDXAPP_PRIVATE_NPM_REQUIREMENTS }}"
297-
- "{{ EDXAPP_PRIVATE_NPM_REQUIREMENTS_TESTING }}"
298+
shell: "easy_install --version && npm install --no-save {{ all_npm_packages | join(' ') }}"
299+
vars:
300+
all_npm_packages: >-
301+
{{
302+
(EDXAPP_PRIVATE_NPM_REQUIREMENTS + EDXAPP_PRIVATE_NPM_REQUIREMENTS_TESTING)
303+
| map(attribute='name')
304+
| list
305+
}}
298306
args:
299307
chdir: "{{ edxapp_code_dir }}"
300308
become_user: "{{ edxapp_user }}"

0 commit comments

Comments
 (0)