logo
down
shadow

Bundler error when executing berks command from a rake task on windows


Bundler error when executing berks command from a rake task on windows

By : user2954704
Date : November 22 2020, 10:31 AM
With these it helps I figured out the problem as I wrote the question and stumbled upon new ideas.
The root problem was that the Ruby binary and gems installed with the ChefDK were conflicting with the system install of Ruby. Specifically, the rake task was executed under the system Ruby installation, but when berks was executed, it ran under the embedded ChefDK Ruby. I'm not clear on this next part, but it seems that the ChefDK Ruby was aware of the Gemfile and tried to resolve the dependencies itself, but because nokogiri cannot be resolved (i.e. built) by bundler on Windows without pain, it failed.
code :
task :cook do
  Bundler.with_clean_env do
    `berks package cookbooks.tar.gz -b .\\cookbook\\Berksfile`
  end
end


Share : facebook icon twitter icon
Executing rake task throws error - use rbconfig instead of obsolete and deprecated config

Executing rake task throws error - use rbconfig instead of obsolete and deprecated config


By : ejy yoni
Date : March 29 2020, 07:55 AM
I hope this helps you . Was able to run my rspec files using rake now. what we did was downgrade to ruby 1.8.7, rake (0.8.7) and rspec (1.2.9)
Rake Aborted Error - Cant find bundler - Can't install bundler

Rake Aborted Error - Cant find bundler - Can't install bundler


By : user3240907
Date : March 29 2020, 07:55 AM
around this issue Try this, it seems that's exactly your problem:
https://gist.github.com/luislavena/f064211759ee0f806c88
Executing a rake task after `rake test`

Executing a rake task after `rake test`


By : Muhammad Husein Adna
Date : October 31 2020, 10:01 AM
This might help you As it turns out, this was less to do with rake and more to do with the way Minitest executes its tests. I mentioned in the question it appeared that the rake tasks were being invoked in the correct order but the tests were executed later for some reason. The reason is because Minitest utilizes the ruby Kernel method at_exit for execution of the tests. The test files are read in at the time the rake test was invoked but all tests are executed at the end of the ruby program, even after my subsequent rake tasks. Here's a blog article that explains the issue in more detail: http://blog.arkency.com/2013/06/are-we-abusing-at-exit/.
Bundler 2, Gemfile not found error when running any rails or rake command

Bundler 2, Gemfile not found error when running any rails or rake command


By : user2493531
Date : March 29 2020, 07:55 AM
it should still fix some issue It looks like rails doesn't support using gems.rb and gems.locked. https://github.com/rails/rails/issues/31295
You could try what that guy did and edit some files, or you could rename your gems.rb back to Gemfile and gems.locked back to Gemfile.lock
Rails 3 problem with rake and bundler: rake aborted! Could not find RubyGem bundler (>= 0)

Rails 3 problem with rake and bundler: rake aborted! Could not find RubyGem bundler (>= 0)


By : theteo
Date : March 29 2020, 07:55 AM
Any of those help Try sudo gem list just to ensure that bundler is there on your system.
Also, if you're using RVM, make sure you've installed it for the active VM - I've run into this a few times where I've switched to a different RVM, forgot to install bundler in the base gemset and fire off a task that then generated this error.
Related Posts Related Posts :
  • How to list the windows tftp server directories and files from command prompt?
  • How should I properly use Git for Visual FoxPro Development?
  • How to create a registry entry with a forward slash in the name
  • Bring Powershell-Console to front from WinForms
  • Add IIS AppPool\ASP.NET v4.0 to local windows group
  • Need a startup script in windows to send ALT+F11 keys?
  • Information about DLL files in windows
  • Prerequisites for learning MFC programming
  • Java Version in a batch file
  • cURL in power shell windows 8.1: "A drive with the name 'localhost' does not exist"
  • How can I make a macro to run a few PowerShell commands one after the other?
  • Add a domain user into a local group when the domain is not available
  • windows 7 bat file leaves out parts of the command
  • psql "more is not recognized" error
  • Echo first three characters of filenames in CMD Windows
  • yii2 composer.phar update is not working
  • Generate memory dump for a windows service that stops unexpectedly
  • send and receive via Serial port Windows
  • Sending data over ethernet from a Raspberry Pi to a c# program on a windows PC
  • Windows driver installation failure after signing and verifying with signtool using cross signed certificates using SHA-
  • Is there any way to make a First Person Shooter input in Windows 8.1?
  • Perl: Check if string is valid directory, case SENSITIVE
  • How to add a program (in this case gmsh) to the PATH
  • Command-line to show a file's properties?
  • ErrorDocument in httpd.conf not working
  • Windows Task Scheduler - specify time window, but only fire once
  • How to delete the mistakenly case-changed renamed tag in github?
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org