Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on blt vm:nuke if nuked previously #1213

Closed
mirsoftacquia opened this issue Mar 20, 2017 · 0 comments
Closed

Build fails on blt vm:nuke if nuked previously #1213

mirsoftacquia opened this issue Mar 20, 2017 · 0 comments
Assignees
Labels
Bug Something isn't working

Comments

@mirsoftacquia
Copy link

mirsoftacquia commented Mar 20, 2017

My system information:

Operating system type: macOS
Operating system version: 10.12.3
BLT version: 8.6.15

How to reproduce:

  1. Create a new project from the scratch, follow these instructions up to point 4: http://blt.readthedocs.io/en/8.x/readme/creating-new-project/
  2. Destroy vm using blt vm:nuke
  3. Initialize vm again using blt vm
  4. Setup local environment again using blt local:setup
  5. Destroy vm again using blt vm:nuke

Result:

Build failed. Output of the last blt vm:nuke command:

 blt > vm:nuke:

 This will destroy your VM, and delete all associated configuration. Continue? [y] :  y
     blted: Are you sure you want to destroy the 'blted' VM? [y/N] y
 ==> blted: Forcing shutdown of VM...
 ==> blted: Destroying VM and associated drives...
 ==> blted: Pruning invalid NFS exports. Administrator privileges will be required...
 Password:
 ==> blted: [vagrant-hostsupdater] Removing hosts

 BUILD FAILED/Users/wonttellyou/blted/./vendor/acquia/blt/phing/tasks/vm.xml:135:8: /Users/wonttellyou/blted/./vendor/acquia/blt/phing/tasks/vm.xml:140:159: Could not find file /Users/wonttellyou/blted/vendor/acquia/blt/template/drush/site-aliases/aliases.drushrc.php to copy.
 ; 23.5764 seconds

It happens because in vm.xml, the file aliases.drushrc.php was moved away from ${blt.root}/template/drush/site-aliases (typically this is in vendor folder) during the first blt vm:nuke command. Thus, the file is not present on second run of blt vm:nuke anymore. I think, the file aliases.drushrc.php should correctly be copied instead of being moved.

@mirsoftacquia mirsoftacquia changed the title Build fails on blt vm:nuke of nuked previously Build fails on blt vm:nuke if nuked previously Mar 20, 2017
@grasmash grasmash added the Bug Something isn't working label Mar 20, 2017
@grasmash grasmash self-assigned this Mar 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants