Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit 1bff818

Browse files
committed
Issue #733: Copy and move composer.json file so Windows composer install works.
1 parent 5904e8e commit 1bff818

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

provisioning/tasks/build-composer.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@
77
become: no
88
when: drupal_composer_path and not drupal_site_exists
99

10-
- name: Copy composer.json into place.
10+
# Use copy-and-move to prevent issues in Windows with VirtualBox. See:
11+
# https://github.com/ansible/ansible/issues/9526#issuecomment-62336962
12+
- name: Copy composer.json into temporary location.
1113
copy:
1214
src: "{{ drupal_composer_path }}"
13-
dest: "{{ drupal_composer_install_dir }}/composer.json"
15+
dest: "/tmp/drupalvm-composer.json"
16+
when: drupal_composer_path and not drupal_site_exists
17+
become: no
18+
19+
- name: Move composer.json into place.
20+
command: "mv /tmp/drupalvm-composer.json {{ drupal_composer_install_dir }}/composer.json"
1421
when: drupal_composer_path and not drupal_site_exists
1522
become: no
1623

0 commit comments

Comments
 (0)