Merge pull request #320 from hashicorp/add-some-dev-setup-docs

Add some info on developing with go
This commit is contained in:
Sophia Castellarin 2022-07-20 15:59:37 -07:00 committed by GitHub
commit 8fedb6752e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ It's nice to have a way to control what version of ruby is installed, so you may
Clone Vagrant's repository from GitHub into the directory where you keep code on your machine:
```
$ git clone https://github.com/hashicorp/vagrant.git
$ git clone --recurse-submodules https://github.com/hashicorp/vagrant.git
```
Next, move into the newly created `./vagrant` directory.
@ -65,7 +65,23 @@ All commands will be run from this path. Now, run the `bundle` command to instal
$ bundle install
```
You can now run Vagrant by running `bundle exec vagrant` from inside that directory.
You can now run Vagrant by running `bundle exec vagrant` from inside that directory.
##### Setting up Vagrant-go
Add the generated `binstubs` to your `PATH`
```
$ export PATH=/path/to/my/vagrant/binstubs
```
Install go using the method of your choice.
Build the Vagrant go binary using `make`
```
$ make
```
This will generate a `./vagrant` binary in your project root.
### How to prepare your pull request