Comments (6)
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.
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.
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.
Verified bug is still present in 0.10.1
with commit d522bc2 from latest master.
Tested with Chef: 13.4.19
from rvm.
Same problem, but It will work with Chef: 12.x.x and cookbook version 0.9.4.
from rvm.
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)
- user::install only supports one user HOT 1
- Is this project dead? HOT 7
- Deprecated Features HOT 2
- gem_package recipe breaks chef_gem HOT 1
- Chef 12.17.5: could not find filename for attribute .gitkeep in cookbook rvm HOT 1
- How do you use this with chef solo? HOT 1
- Use --no-document instead of --no-rdoc --no-ri HOT 5
- Compatibility with Ubuntu 18.04 HOT 4
- Dangerfile should use failure instead of fail
- Remove .rubocop.yml with Dangerfile
- Update Changelog
- Run latest cookstyle
- Update builds to be parallel
- Could not parse `-/metadata.rb': undefined method `chef_version' HOT 2
- Support Modern Operating systems and have working dokken
- Error: cannot load such file -- rvm HOT 7
- rvm Chef 17 compatibility
- No resource, method, or local variable named `create_rvm_shell_chef_wrapper' for `Chef::Recipe "default"' HOT 2
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rvm.