Skip to content
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

chef/mixin/homebrew_user rename to chef/mixin/homebrew needs requires updating #190

Open
stlng2 opened this issue Jan 13, 2025 · 0 comments
Assignees
Labels
Upstream Bug Bug in upstream vendor application

Comments

@stlng2
Copy link

stlng2 commented Jan 13, 2025

👻 Brief Description

In chef/chef#14544 homebrew_user was renamed

Mixin/homebrew_user
Renamed to mixin/homebrew since it has more than just user functions

https://github.com/chef/chef/pull/14544/files#diff-630339525f378bfd1d3160794ea85415d76c1a71a1460ffc59387ed51fcdabb8R30

This is causing Chef failures with v18.6.2

================================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/homebrew/libraries/helpers.rb
================================================================================

LoadError
---------
cannot load such file -- chef/mixin/homebrew_user

Cookbook Trace: (most recent call first)
----------------------------------------
  /var/chef/cache/cookbooks/homebrew/libraries/helpers.rb:23:in `<class:HomebrewUserWrapper>'
  /var/chef/cache/cookbooks/homebrew/libraries/helpers.rb:22:in `<top (required)>'

Relevant File Content:
----------------------
/var/chef/cache/cookbooks/homebrew/libraries/helpers.rb:

 16:  # distributed under the License is distributed on an "AS IS" BASIS,
 17:  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 18:  # See the License for the specific language governing permissions and
 19:  # limitations under the License.
 20:  #
 21:
 22:  class HomebrewUserWrapper
 23>>   require 'chef/mixin/homebrew_user'
 24:    include Chef::Mixin::HomebrewUser
 25:    include Chef::Mixin::Which
 26:  end
 27:
 28:  module Homebrew
 29:    extend self
 30:
 31:    require 'mixlib/shellout'
 32:    include Chef::Mixin::ShellOut

🥞 Cookbook version

v5.4.9

👩‍🍳 Chef-Infra Version

v18.6.2

🎩 Platform details

Not version specific but tested on RHEL 8.10

Steps To Reproduce

Steps to reproduce the behavior:

  1. Add a dependency on homebrew
  2. Run chef-client v18.6.2

🚓 Expected behavior

Chef-client should complete without errors

@damacus damacus added the Upstream Bug Bug in upstream vendor application label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Upstream Bug Bug in upstream vendor application
Projects
None yet
Development

No branches or pull requests

3 participants