Commit graph

184 commits

Author SHA1 Message Date
Sebastien Dionne
81e6dfa595
Merge pull request #13731 from survivant/main
Fix typos and linguistic errors in documentation / hacktoberfest
2025-11-21 10:52:25 +05:30
Chris Roberts
ea25996b21
Update Vagrant behavior outside of installers
Remove customized require behaviors and modify the bin executable
to check for missing tools that Vagrant expects to exist when
running outside of an installer.
2025-04-02 11:40:17 -07:00
Chris Roberts
e3a8d7f2cf
Remove vagrant-go implementation 2025-03-17 14:14:42 -07:00
Chris Roberts
b375e4d5b6
Remove activation at startup, add helper
This removes the gem activation from the startup and adds a
helper for properly activating gems based on the defined
runtime constraints of the vagrant specification at loading
time.
2024-11-06 17:33:00 -08:00
Chris Roberts
f1e988f33b
Activate specifications at startup
During startup get the vagrant specification and activate all the
runtime dependencies required by vagrant. This will prevent invalid
specifications from being activated later if environment includes
mixed versions.
2024-11-01 13:42:30 -07:00
sophia
d5007d4d85
Use remote plugin module when in server mode 2022-04-25 12:26:13 -05:00
Chris Roberts
8890b8870e
Fix ruby mode startup 2022-04-25 12:24:31 -05:00
Chris Roberts
e56b2df70d
Update serve mode setup to prevent environment loading 2022-04-25 12:24:31 -05:00
Chris Roberts
fe293dfd1f
Require client to be set and provide stub on initial startup
When running in server mode, make the Environment validate a client
option is provided on instantiation. If no client option is provided,
raise an exception since it is required in server mode.

Since an initial Environment is required during start, include a
stub value for the client so the initial Environment can be instantiated
successfully and the GRPC service can be started.
2022-04-25 12:24:23 -05:00
Chris Roberts
5613f0b4ad
Use ephemeral command plugin class to process arguments for subcommand 2022-04-25 12:23:59 -05:00
Chris Roberts
cefb514f77
If running as server enable server mode before setting up 2022-04-25 12:23:59 -05:00
sophia
673ffcf1b1
Remove bin/vagrant-server 2022-04-25 12:23:50 -05:00
sophia
c02baa9219
Start server as vagrant command 2022-04-25 12:23:50 -05:00
sophia
c1dbc5efad
Return mock plugin list 2022-04-25 12:23:50 -05:00
sophia
9baacbc44e
Add proto files 2022-04-25 12:23:50 -05:00
sophia
a5659d71e3
Simplify server 2022-04-25 12:23:50 -05:00
sophia
0d39c5ba00
Setup go-plugin compatible ruby server 2022-04-25 12:23:50 -05:00
Chris Roberts
cfde89b867 Fix error output on failure 2021-07-06 14:34:43 -07:00
Chris Roberts
32f4951759 Activate builtin specs during startup
When starting up, and before any loading, find our current
    specification and activate all the internal dependencies
    while also collecting the activated specifications. Store
    these for later use when doing plugin resolutions. We bypass
    the builtin list when running in bundler since they will
    still show up as not activated, but we use the entire list
    regardless.
2021-03-08 16:25:13 -08:00
Chris Roberts
2d7694e380 Activate all dependencies when starting up 2021-03-08 15:58:28 -08:00
sophia
0296e59baf Use :ui_class opt to set ui class 2020-03-30 10:21:14 -04:00
sophia
d6d6e2c362 Surface cli option to quiet progress 2020-03-30 09:32:23 -04:00
Chris Roberts
b8702ac889 Include default options in option parser
Adds method to shared helpers for adding procs to be evaluated
which can add default modifications to the option parser used
by commands. Customized option parser class within Vagrant
handles processing defined procs to set options.
2020-03-27 16:57:59 -07:00
Chris Roberts
24da7476a1 When not running as a pre-release version, disable verbose output
This will restrict output of warnings for things like method
deprections to only being visble while running a pre-release
version of Vagrant (typically in development)
2020-03-10 15:34:06 -07:00
Brian Cain
2783b121f9
Remove VALID_FEATURES constant 2018-12-07 13:52:02 -08:00
Brian Cain
accabdd7ca
Warn users about unknown requested experimental features 2018-12-07 13:36:16 -08:00
Brian Cain
01ec72cac2
Introduce a local and global check for enabled experimental features 2018-12-07 13:30:50 -08:00
Brian Cain
fc4ba7f420
Update to global_enabled? 2018-12-07 10:50:20 -08:00
Brian Cain
611e3dce96
Use util methods in vagrant bin for experimental flag 2018-12-07 10:27:47 -08:00
Brian Cain
212f6ce8bb
Add experimental flag to guard development features
This commit introduces a special flag for enabling features that are not
ready for release. It can either be enabled by setting the
`VAGRANT_EXPERIMENTAL` flag to "1", or by setting it to a string of one
or more comma seperated values for specific features. It also adds a
couple of Vagrant developer focused methods for making it easier to
determine if the flag has been enabled, and if so, what features.
2018-12-06 09:03:49 -08:00
Chris Roberts
1cd8a4b9be Allow vagrantfile_name stub disable via environment variable 2018-07-18 10:50:06 -07:00
Chris Roberts
737ef0eded Allow Vagrantfile to load when using --local 2018-07-17 15:00:38 -07:00
Chris Roberts
9321f3cb6c Ensure the vagrantfile_name option is stubbed when using plugin commands 2018-07-16 16:54:43 -07:00
Chris Roberts
1bba1f86bb Disable plugins on plugin commands but allow init when listing 2018-05-08 13:46:44 -07:00
Chris Roberts
e743fe050e Disable report on exception by default
Fixes #9727
2018-04-26 14:58:05 -07:00
Josh Soref
1a5ddea9f4 Spelling fixes
* account
* addresses
* administrator
* afterwards
* because
* bridgeable
* capabilities
* capability
* checksum
* configuration
* configuration for
* configure
* criteria
* delimited
* delivered
* derivatives
* description
* detect
* directory
* display
* downloading
* during
* electric
* enabling
* encountered
* equivalent
* executable
* executed
* hashicorp
* hypervisor
* hyphens
* implementation
* incorporate
* inheritance
* initialize
* instance
* instead
* interactions
* invocable
* machine
* maximum
* message
* mounting
* overridden
* overwrite
* paramiko
* preparing
* provides
* provisioning
* recursively
* requested
* resetting
* retryable
* running
* satisfied
* searching
* sometimes
* specified
* successfully
* synced folders
* unauthorized
* underlying
* userprofile
* vagrant
* vagrantfile
* variable
* various
* version
* virtual
* windows
2018-03-14 14:41:04 +00:00
Chris Roberts
da42bfa8ac Provide optional timestamp on log output
Enable log message output to be prefixed with the date and time.
Include CLI flag to optionally enable `--timestamp` and a
convenience flag to enable debug logging with timestamps at
the same time `--debug-timestamp`.
2017-12-13 17:05:51 -08:00
Chris Roberts
fa2dd5b3fb Recreate the Vagrant environment when required by WSL setup 2017-05-12 13:14:04 -07:00
Chris Roberts
9a06374d29 Perform WSL check and init after environment is created 2017-05-08 15:20:21 -07:00
Chris Roberts
83b0c87f52 Support running Vagrant within the Windows Subsystem for Linux 2017-05-08 10:21:01 -07:00
Chris Roberts
9a8f88d36e Prevent loading local Vagrantfile when disabling plugins for global actions 2016-11-30 19:41:59 -08:00
Chris Roberts
613a38ef74 Disable plugin initialization for all plugin commands except list 2016-11-16 13:08:44 -08:00
Chris Roberts
1f5dd35d16 Remove bundler where no longer required 2016-11-07 20:00:38 -08:00
Chris Roberts
b15ef3a6ff Add plugin expunge command to remove all user installed plugins 2016-11-07 18:48:51 -08:00
Chris Roberts
d5c5561302 Allow disable of user plugins if repair command is requested 2016-11-07 18:48:51 -08:00
Chris Roberts
1fb4553d14 [core] Remove bundler usage for plugin management 2016-11-07 18:48:51 -08:00
Chris Roberts
585ee76a00 Escape nested quotes within error message 2016-10-11 15:04:43 -07:00
Chris Roberts
3e46e8bcb7 core: Rescue EINVAL exceptions when loading bundler 2016-10-11 10:47:08 -07:00
Seth Vargo
b95e5d80f5
Allow users to force color
Fixes GH-5390
2016-05-30 15:56:09 -04:00
Mitchell Hashimoto
479323f1e8 for newer versions of Bundler, store the runtime 2015-07-09 22:12:47 -06:00