GithubHelp home page GithubHelp logo

Comments (6)

zl4bv avatar zl4bv commented on June 15, 2024 4

I spoke to @martinisoft at ChefConf earlier this year and it's likely this issue will only get fixed if someone else is willing to lend a hand. Meanwhile, I'm going to close this issue.

from rvm.

rdonahoe-placed avatar rdonahoe-placed commented on June 15, 2024

the replacement for this is mixlib::shellout or chef::mixin::shellout which is a wrapper for mixlib::shellout.
unfortunately, these don't allow you to explicitly declare what shell to use so conversion is not simple.

for commands that require a bash shell, the solution right now would be either:

shell_out("bash -c \"some command\"")
or
shell_out("absolute_path_to_script")
where the script has a shebang that declares the shell

from rvm.

bacrossland avatar bacrossland commented on June 15, 2024

The issue is still happening with the recent unreleased version of the rvm cookbook. Leaving this post so the issue remains active.

rvm cookbook version 0.10.1
Chef version 13.2.20

================================================================================
       Recipe Compile Error in /tmp/kitchen/cache/cookbooks/rvm/libraries/chef_rvm_string_cache.rb
       ================================================================================

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

       Cookbook Trace:
       ---------------
         /tmp/kitchen/cache/cookbooks/rvm/libraries/chef_rvm_string_cache.rb:22:in `<top (required)>'

       Relevant File Content:
       ----------------------
       /tmp/kitchen/cache/cookbooks/rvm/libraries/chef_rvm_string_cache.rb:

        15:  # Unless required by applicable law or agreed to in writing, software
        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>> require 'chef/mixin/command'
        23:
        24:  class Chef
        25:    module RVM
        26:      module ShellHelpers
        27:        # stub to satisfy StringCache (library load order not guarenteed)
        28:      end
        29:
        30:      class StringCache
        31:        class << self

       System Info:
       ------------
       chef_version=13.2.20
       platform=ubuntu
       platform_version=14.04
       ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
       program_name=chef-client worker: ppid=2303;start=22:56:10;
       executable=/opt/chef/bin/chef-client

from rvm.

trinitronx avatar trinitronx commented on June 15, 2024

Verified bug is still present in 0.10.1 with commit d522bc2 from latest master.

Tested with Chef: 13.4.19

from rvm.

yi-le avatar yi-le commented on June 15, 2024

Same problem, but It will work with Chef: 12.x.x and cookbook version 0.9.4.

from rvm.

lock avatar lock commented on June 15, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from rvm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.