sophia
f811e995da
Return errors when box metadata is unavailable or invalid
2022-09-28 16:52:00 -04:00
sophia
3be4eacaa9
Return an error if the provider is not usable
2022-09-20 14:33:43 -04:00
sophia
49280286ad
Strip new lines from error details
...
The error details message should just be one string without spacing
so the terminal can set a output length. This will allow messages
from Ruby and Go errors to have similar formating.
2022-09-19 15:14:42 -04:00
sophia
b9fb6c5f5f
Refactor to use localizer to create error with status
2022-09-19 15:14:42 -04:00
sophia
bd801af984
Add details to errors
2022-09-19 15:14:42 -04:00
sophia
9a276d7818
Get additional message into error
2022-09-19 15:14:42 -04:00
sophia
ccb89c0143
Don't check for errors when checking if a provider is usable
...
If a provider is unusable then Usable() will throw an error. When
checking for a default provider, Vagrant should not raise an error
if there is an issue with executing Usable().
2022-09-19 15:14:42 -04:00
sophia
6d4f769c87
Validate provider
2022-09-19 15:14:42 -04:00
sophia
f26ff28ad4
Set provider if available
2022-09-19 15:14:42 -04:00
sophia
21e9fc3674
Use basic ui if using a non color enabled terminal
2022-09-14 11:42:54 -04:00
sophia
f7cd08b208
Pass terminal output color option from Ruby to terminal plugin
2022-09-14 11:42:52 -04:00
sophia
45d15e12c2
Support color in runner ui
2022-09-14 11:41:30 -04:00
sophia
e96738bf43
Add protos for supporting colored terminal line events
2022-09-14 11:41:30 -04:00
sophia
a718e228a4
Colour go experimental warning
2022-09-14 11:41:30 -04:00
sophia
2f5c185708
Warn users when using vagrant-go
2022-07-28 11:54:27 -05:00
Paul Hinze
7c56c74bb6
Support and honor the "primary" option for Command plugins
2022-07-27 11:36:04 -05:00
Chris Roberts
54502d5d66
Merge pull request #324 from hashicorp/fix-packaged-hang
...
Fix hanging commands when using packaged installation
2022-07-26 09:12:50 -07:00
Chris Roberts
cbbc0ca7f5
Keep deferred close as multiple calls are allowed
2022-07-25 15:28:00 -07:00
Chris Roberts
1ae72d6283
Use cleanup and log error if encountered
2022-07-25 15:27:30 -07:00
Chris Roberts
dca389eda0
Generated proto updates
2022-07-25 15:00:49 -07:00
Chris Roberts
1a0c6b9d70
Request ruby runtime to stop itself when closing
2022-07-25 15:00:49 -07:00
Chris Roberts
3aedfb4970
Include Stop() function on the ruby client
2022-07-25 14:31:13 -07:00
Chris Roberts
8c3393bd61
Add Stop rpc for ruby internal service
2022-07-25 14:30:29 -07:00
Chris Roberts
d5e41e328e
Check base command close for error and modify exitcode
2022-07-25 14:28:53 -07:00
sophia
7441927f06
Set not created machine state when appropriate
2022-07-25 15:16:40 -05:00
sophia
5df47c8856
Check for existence of metatdata.json to determine if a box is v1
2022-07-25 13:05:48 -05:00
sophia
7678c28f65
Add warning about v1 boxes
2022-07-25 12:29:59 -05:00
sophia
0af2ff5709
Automatically update v1 boxes
2022-07-25 12:29:32 -05:00
Paul Hinze
957d0d3779
Bring plugin options back to Ruby for providers and synced folders
...
This removes the need for the validation workaround for Docker, because
box_updated is once again available in that context.
We don't technically need the SyncedFolder priorities back on the Ruby
side, but wiring them through for symmetry.
Depends on https://github.com/hashicorp/vagrant-plugin-sdk/pull/183
2022-07-15 12:14:47 -05:00
Paul Hinze
da77316f9a
Fix virtualbox lifecycle acctests
...
Two fixes:
1. Allow us to make it through Vagrant::Environment initialization when
there's no project yet, fixing box add and init commands.
2. Don't prune UNKNOWN targets from state... as VBox looks like it
leaves things in that state when it runs suspend.
2022-07-13 18:36:11 -05:00
Chris Roberts
58fce40886
Add AsTarget() to machine and include nicer output
2022-07-11 15:08:08 -07:00
Chris Roberts
766b951040
Ensure config is set on basis/project during init
2022-07-08 16:38:03 -07:00
Chris Roberts
df42e88aab
Attach project logger to target on scrub
2022-07-08 16:38:03 -07:00
Chris Roberts
23983d30d4
Reload project after target created in tests
2022-07-08 16:38:03 -07:00
Chris Roberts
410650117d
Setup our logger so we get output on failures
2022-07-08 16:38:03 -07:00
Chris Roberts
6d0b5363c1
Update target init/scrub behavior on projects
2022-07-08 16:38:03 -07:00
Chris Roberts
7c28aa3ce8
Add Exists() helper to target
2022-07-08 16:38:02 -07:00
Chris Roberts
e78d0b6681
Close project in test to force full target removal
2022-07-08 16:38:02 -07:00
Chris Roberts
08bcc8e9c7
When unsetting machine ID, just set state to not created
2022-07-08 16:38:02 -07:00
Chris Roberts
df0a4342a6
When project is provided set ref into data
2022-07-08 16:38:02 -07:00
Chris Roberts
2c756b3c07
Update testing helpers to use factory
2022-07-08 16:38:02 -07:00
Chris Roberts
2c35229013
Perform target lookup to validate exist and name
2022-07-08 16:38:02 -07:00
Chris Roberts
9fe9492875
Only store configuration if vagrantfile defined
2022-07-08 16:38:02 -07:00
Chris Roberts
bdf1cfe6bf
Set test target state to created
2022-07-08 16:38:02 -07:00
Chris Roberts
762fac3ae6
Init project config and only save if vagrantfile defined
2022-07-08 16:38:02 -07:00
Chris Roberts
0a4b9c9019
Always save the target when saving machine
2022-07-08 16:38:02 -07:00
Chris Roberts
5619341880
Use factory values only if provided options left unset
2022-07-08 16:38:02 -07:00
Chris Roberts
a3b32bdf60
Default configuration data, only store if vagrantfile defined
2022-07-08 16:38:02 -07:00
Chris Roberts
0f7c4f25c1
Load target in index via factory. Filter targets.
2022-07-08 16:38:02 -07:00
Chris Roberts
e959369a0b
Use factory for scope loading in runner
2022-07-08 16:38:02 -07:00