New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homebrew Environmental Var #87

bdwyertech opened this Issue Jan 18, 2016 · 1 comment


None yet
2 participants

bdwyertech commented Jan 18, 2016

Looks like this commit got merged in and is now causing issues with the homebrew_package library.

The brew bash script now populates environmental variables which the config library is dependent upon.


Recipe: homebrew::install_formulas
  * homebrew_package[homebrew/php/composer] action install

    Error executing action `install` on resource 'homebrew_package[homebrew/php/composer]'

    no implicit conversion of nil into String

    Cookbook Trace:
    /var/chef/cache/cookbooks/homebrew/libraries/homebrew_package.rb:94:in `version_from_formula'
    /var/chef/cache/cookbooks/homebrew/libraries/homebrew_package.rb:74:in `current_installed_version'
    /var/chef/cache/cookbooks/homebrew/libraries/homebrew_package.rb:44:in `load_current_resource'

Something like the following needs to be added to the homebrew_package library

  ENV['HOMEBREW_PREFIX'] = brew_cmd.stdout.chomp
  ENV['HOMEBREW_CELLAR'] = ::File.join(ENV['HOMEBREW_PREFIX'], 'Cellar')

kejadlen added a commit to seattle-beach/sprout-homebrew that referenced this issue Jan 18, 2016


This comment has been minimized.

Show comment
Hide comment

keen99 Jan 19, 2016

thanks for tracking this down - this broke my world this morning as well.

keen99 commented Jan 19, 2016

thanks for tracking this down - this broke my world this morning as well.

@tas50 tas50 closed this in #88 Jan 20, 2016

dougireton added a commit to Nordstrom/chefdk_bootstrap that referenced this issue Jan 20, 2016

Bump homebrew dependency to ~> 2.0
Homebrew cookbook v2.0.4 fixes chef-cookbooks/homebrew#87.

This will fix the bootstrap for Mac users.

Fix #83

@kejadlen kejadlen referenced this issue Jan 26, 2016


Update readme #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment