I use shell provisioning scripts in a lot of my Vagrant environments to 
automate the configuration of build/test tools, etc. Most of these download 
software from external sources using curl or wget (I've tried both.) These 
tools display a progress indicator (very useful to have, especially since 
some of the files I'm downloading are fairly large, plus my network 
connection is sometimes sluggish/flaky.) However Vagrant really does not 
display these progress indicators very well at all, resulting in screens 
full of garbage such as the following:

==> default: #
==> default: #########
############                                                              16.7%
############                                                              16.7%
==> default: #
==> default: #
==> default: #
==> default: #
==> default: #
==> default: #
==> default: #
==> default: #
==> default: #
==> default: #
==> default: #
==> default: #
==> default:
==> default:
==> default:
############                                                              16.8%

This causes a great deal of spew and could result in legitimate/important 
messages (e.g. warning/error messages) scrolling off the screen. At first I 
thought this weirdness was because of the fancy cursor tricks that 
curl/wget uses to draw the progress bar; however I even tried wget's 
"--progress=dot" which is pretty plain, it just prints out rows of dots, 
with no backspacing or other fancy cursor tricks, but even this caused 
unusual output when run in a vagrant provision script. The only way I've 
found of getting clean output is if I use curl/wget's quiet/non-verbose 
mode, which of course turns off all output, but then I don't have any idea 
whatsoever of what the download's current progress is. Is there any way 
that Vagrant can be configured to display this type of output correctly? 
Or, alternatively, is there another command-line download tool whose status 
output works better with Vagrant? Thanks!

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/4952841f-64fc-4609-858f-f73815098982%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to