File tree Expand file tree Collapse file tree
playbooks/roles/edxapp/tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}"
You can’t perform that action at this time.
0 commit comments