laravel / homestead

MIT License
3.86k stars 1.45k forks source link

The shell provisioner's `env` option must be a hash. #1230

Closed eldair closed 5 years ago

eldair commented 5 years ago

Versions

Host operating system

Windows 10 1903

Homestead.yaml

---
ip: '192.168.10.10'
memory: 4096
cpus: 4
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: E:/Code/
      to: /home/vagrant/Code

sites:
    - map: domaindata.test
      to: /home/vagrant/Code/domain-data/public

databases:
    - domaindata

features:
    - elasticsearch: 6
    - ohmyzsh: true

Vagrant destroy & up output

There are errors in the configuration of this machine. Please fix
the following errors and try again:

shell provisioner:
* The shell provisioner's `env' option must be a hash.

Actual behavior

Vagrant up doesn't work starting with commit mentioned above (checking out commit before that one or any v9 works fine)

svpernova09 commented 5 years ago

https://laravel.com/docs/5.8/homestead#installing-optional-features

Change

features:
    - elasticsearch: 6

to

features:
    - elasticsearch:
        version: 6
eldair commented 5 years ago

Thanks, didn't see syntax was additionally changed after 9.0.0

NoahOlsenRM commented 5 months ago

I had the same error. Turns out, I had the feature called "false44" by accident. Maybe just check these are all correct with no typos. Commenting for documentation purposes.

features:
    -
        mariadb: false
    -
        ohmyzsh: false
    -
        webdriver: false44