Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
berkshelf lockfile bug reproduced with v6.3.1 and v5.6.5 (same result each time)
trinitronx@saturn:lyraphase-chef(add-ubuntu-desktop-role)$ berks outdated --debug
I, [2017-10-20T01:45:23.381159 #23201] INFO -- : Checking if lockfile is trusted
D, [2017-10-20T01:45:23.381284 #23201] DEBUG -- : Checking apt (>= 0.0.0)
D, [2017-10-20T01:45:23.384546 #23201] DEBUG -- : Detected there is a cached cookbook
D, [2017-10-20T01:45:23.384632 #23201] DEBUG -- : Checking transitive dependencies for apt (5.0.0)
D, [2017-10-20T01:45:23.384647 #23201] DEBUG -- : Checking compat_resource (>= 12.14.7)
D, [2017-10-20T01:45:23.384682 #23201] DEBUG -- : Checking transitive dependencies for compat_resource (12.16.2)
D, [2017-10-20T01:45:23.384693 #23201] DEBUG -- : Already checked - skipping
D, [2017-10-20T01:45:23.384704 #23201] DEBUG -- : Checking bash (>= 0.0.0)
D, [2017-10-20T01:45:23.387452 #23201] DEBUG -- : Detected there is a cached cookbook
D, [2017-10-20T01:45:23.387496 #23201] DEBUG -- : Different location - cannot be trusted!
D, [2017-10-20T01:45:23.387535 #23201] DEBUG -- : Dependency location: #<Berkshelf::GithubLocation:0x000000024d0538 @dependency=#<Berkshelf::Dependency: bash (>= 0.0.0), locked_version: nil, groups: [:default], location: https://github.com/coffeencoke/chef-bash.git (at master)>, @options={:group=>[], :constraint=>nil, :git=>"https://github.com/coffeencoke/chef-bash.git"}, @uri="https://github.com/coffeencoke/chef-bash.git", @branch=nil, @tag=nil, @ref=nil, @revision=nil, @rel=nil, @rev_parse="master">
D, [2017-10-20T01:45:23.387735 #23201] DEBUG -- : Locked location: #<Berkshelf::GitLocation:0x000000024127e0 @dependency=#<Berkshelf::Dependency: bash (= 0.1.0), locked_version: #<Semverse::Version 0.1.0>, groups: [:default], location: git://github.com/coffeencoke/chef-bash.git (at master)>, @options={:git=>"git://github.com/coffeencoke/chef-bash.git", :revision=>"dc29b8ba9f2e8484df9274a0e7c1fa3aed176537", :locked_version=>"0.1.0"}, @uri="git://github.com/coffeencoke/chef-bash.git", @branch=nil, @tag=nil, @ref=nil, @revision="dc29b8ba9f2e8484df9274a0e7c1fa3aed176537", @rel=nil, @rev_parse="master", @cached_cookbook=#<Berkshelf::CachedCookbook:0x00000001909fb0 @cookbook_name="bash", @path=#<Pathname:/home/trinitronx/.berkshelf/cookbooks/bash-dc29b8ba9f2e8484df9274a0e7c1fa3aed176537>, @metadata=#<Ridley::Chef::Cookbook::Metadata:0x000000019c6ed0 @cookbook=nil, @name="bash", @long_description="", @maintainer="Matt Simpson", @maintainer_email="matt.simpson3@gmail.com", @license="MIT", @description="Cookbook to help manage bash profiles using Chef", @platforms=#<Hashie::Mash Ubuntu="= 12.4.0">, @dependencies=#<Hashie::Mash user=">= 0.0.0">, @recommendations=#<Hashie::Mash>, @suggestions=#<Hashie::Mash>, @conflicting=#<Hashie::Mash>, @providing=#<Hashie::Mash>, @replacing=#<Hashie::Mash>, @attributes=#<Hashie::Mash>, @groupings=#<Hashie::Mash>, @recipes=#<Hashie::Mash>, @version=#<Semverse::Version 0.1.0>, @source_url="", @issues_url="", @privacy=false, @chef_versions=[], @ohai_versions=[], @gems=[]>, @frozen=false, @chefignore=nil, @files=["/home/trinitronx/.berkshelf/cookbooks/bash-dc29b8ba9f2e8484df9274a0e7c1fa3aed176537/recipes/aliases.rb", "/home/trinitronx/.berkshelf/cookbooks/bash-dc29b8ba9f2e8484df9274a0e7c1fa3aed176537/resources/alias.rb", "/home/trinitronx/.berkshelf/cookbooks/bash-dc29b8ba9f2e8484df9274a0e7c1fa3aed176537/providers/alias.rb", "/home/trinitronx/.berkshelf/cookbooks/bash-dc29b8ba9f2e8484df9274a0e7c1fa3aed176537/Gemfile.lock", "/home/trinitronx/.berkshelf/cookbooks/bash-dc29b8ba9f2e8484df9274a0e7c1fa3aed176537/LICENSE", "/home/trinitronx/.berkshelf/cookbooks/bash-dc29b8ba9f2e8484df9274a0e7c1fa3aed176537/.kitchen.yml", "/home/trinitronx/.berkshelf/cookbooks/bash-dc29b8ba9f2e8484df9274a0e7c1fa3aed176537/metadata.rb", "/home/trinitronx/.berkshelf/cookbooks/bash-dc29b8ba9f2e8484df9274a0e7c1fa3aed176537/README.md", "/home/trinitronx/.berkshelf/cookbooks/bash-dc29b8ba9f2e8484df9274a0e7c1fa3aed176537/Berksfile.lock", "/home/trinitronx/.berkshelf/cookbooks/bash-dc29b8ba9f2e8484df9274a0e7c1fa3aed176537/.gitignore", "/home/trinitronx/.berkshelf/cookbooks/bash-dc29b8ba9f2e8484df9274a0e7c1fa3aed176537/Gemfile", "/home/trinitronx/.berkshelf/cookbooks/bash-dc29b8ba9f2e8484df9274a0e7c1fa3aed176537/Berksfile", "/home/trinitronx/.berkshelf/cookbooks/bash-dc29b8ba9f2e8484df9274a0e7c1fa3aed176537/CONTRIBUTING.md"], @manifest=#<Hashie::Mash attributes=#<Hashie::Array []> definitions=#<Hashie::Array []> files=#<Hashie::Array []> libraries=#<Hashie::Array []> providers=#<Hashie::Array [{:name=>"alias.rb", :path=>"providers/alias.rb", :checksum=>"334bef7f87493c53d615b8620f00863c", :specificity=>"default"}]> recipes=#<Hashie::Array [{:name=>"aliases.rb", :path=>"recipes/aliases.rb", :checksum=>"4b24bde4536da9d818c6c612ab030024", :specificity=>"default"}]> resources=#<Hashie::Array [{:name=>"alias.rb", :path=>"resources/alias.rb", :checksum=>"c3b711fb4cb99a47dba0bedc3a70cf28", :specificity=>"default"}]> root_files=#<Hashie::Array [{:name=>"Gemfile.lock", :path=>"Gemfile.lock", :checksum=>"75aad347e68725ac5810bdfc80f27b94", :specificity=>"default"}, {:name=>"LICENSE", :path=>"LICENSE", :checksum=>"9e75d2c04a4ef30b1af787a584b30d3d", :specificity=>"default"}, {:name=>".kitchen.yml", :path=>".kitchen.yml", :checksum=>"61c01e5a5e7c9d92445424e943d0c8d4", :specificity=>"default"}, {:name=>"metadata.rb", :path=>"metadata.rb", :checksum=>"c8803a7f4fa164922b2293824a9f9961", :specificity=>"default"}, {:name=>"README.md", :path=>"README.md", :checksum=>"f84af710c9b788ccd9ec15e2daea8d91", :specificity=>"default"}, {:name=>"Berksfile.lock", :path=>"Berksfile.lock", :checksum=>"9a5d35ca3a50bcd032f46360a1dc0651", :specificity=>"default"}, {:name=>".gitignore", :path=>".gitignore", :checksum=>"bb01fa8cbb0a7ffce490135189629f83", :specificity=>"default"}, {:name=>"Gemfile", :path=>"Gemfile", :checksum=>"379b5a8bbb708fb98c2c6dd5d20d297b", :specificity=>"default"}, {:name=>"Berksfile", :path=>"Berksfile", :checksum=>"0f5b773fada9e9a942eeee7c8a4f7bde", :specificity=>"default"}, {:name=>"CONTRIBUTING.md", :path=>"CONTRIBUTING.md", :checksum=>"c871397538ddb9950d76378c961c077d", :specificity=>"default"}]> templates=#<Hashie::Array []>>>>
The lockfile is out of sync! Run `berks install` to sync the lockfile.
/home/trinitronx/.rvm/gems/ruby-2.4.0@lyraphase-chef/gems/berkshelf-6.3.1/lib/berkshelf/berksfile.rb:751:in `validate_lockfile_trusted!'
/home/trinitronx/.rvm/gems/ruby-2.4.0@lyraphase-chef/gems/berkshelf-6.3.1/lib/berkshelf/berksfile.rb:509:in `outdated'
/home/trinitronx/.rvm/gems/ruby-2.4.0@lyraphase-chef/gems/berkshelf-6.3.1/lib/berkshelf/cli.rb:251:in `outdated'
/home/trinitronx/.rvm/gems/ruby-2.4.0@lyraphase-chef/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
/home/trinitronx/.rvm/gems/ruby-2.4.0@lyraphase-chef/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
/home/trinitronx/.rvm/gems/ruby-2.4.0@lyraphase-chef/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
/home/trinitronx/.rvm/gems/ruby-2.4.0@lyraphase-chef/gems/berkshelf-6.3.1/lib/berkshelf/cli.rb:49:in `dispatch'
/home/trinitronx/.rvm/gems/ruby-2.4.0@lyraphase-chef/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
/home/trinitronx/.rvm/gems/ruby-2.4.0@lyraphase-chef/gems/berkshelf-6.3.1/lib/berkshelf/cli.rb:25:in `execute!'
/home/trinitronx/.rvm/gems/ruby-2.4.0@lyraphase-chef/gems/berkshelf-6.3.1/bin/berks:5:in `<top (required)>'
/home/trinitronx/.rvm/gems/ruby-2.4.0@lyraphase-chef/bin/berks:22:in `load'
/home/trinitronx/.rvm/gems/ruby-2.4.0@lyraphase-chef/bin/berks:22:in `<main>'
/home/trinitronx/.rvm/gems/ruby-2.4.0@lyraphase-chef/bin/ruby_executable_hooks:15:in `eval'
/home/trinitronx/.rvm/gems/ruby-2.4.0@lyraphase-chef/bin/ruby_executable_hooks:15:in `<main>'
trinitronx@saturn:lyraphase-chef(add-ubuntu-desktop-role)$ rm -rf ~/.berkshelf/cookbooks/
trinitronx@saturn:lyraphase-chef(add-ubuntu-desktop-role)$ berks install
Resolving cookbook dependencies...
Fetching 'bash' from git://github.com/coffeencoke/chef-bash.git (at master)
Fetching 'curl' from git://github.com/phlipper/chef-curl.git (at master)
Fetching 'epson-printer' from git://github.com/trinitronx/chef-epson-printer.git (at v0.1.0)
Fetching 'hub' from git://github.com/trinitronx/chef-hub.git (at avoid-c)
Fetching 'kodi' from git://github.com/trinitronx/kodi.git (at v0.1.5)
Fetching 'lyraphase-pi' from git://github.com/trinitronx/lyraphase-pi.git (at v0.3.3)
Fetching 'lyraphase_workstation' from git://github.com/trinitronx/lyraphase_workstation.git (at master)
Fetching 'mythtv' from git://github.com/trinitronx/mythtv-cookbook.git (at always-use-latest-platform-compatible-ppa-version)
Fetching 'mythtv-saturn' from source at site-cookbooks/mythtv-saturn
Fetching 'osx' from git://github.com/pivotal-sprout/osx.git (at master)
Fetching 'rvm' from git://github.com/martinisoft/chef-rvm.git (at e840e57)
Fetching 'sprout-base' from git://github.com/pivotal-sprout/sprout-base.git (at master)
Fetching 'sprout-git' from git://github.com/pivotal-sprout/sprout-git.git (at master)
Fetching 'sprout-homebrew' from git://github.com/pivotal-sprout/sprout-homebrew.git (at master)
Fetching 'sprout-mysql' from git://github.com/pivotal-sprout/sprout-mysql.git (at master)
Fetching 'sprout-osx-apps' from git://github.com/pivotal-sprout/sprout-osx-apps.git (at master)
Fetching 'sprout-osx-settings' from git://github.com/pivotal-sprout/sprout-osx-settings.git (at master)
Fetching 'sprout-postgresql' from git://github.com/pivotal-sprout/sprout-postgresql.git (at master)
Fetching 'sprout-rbenv' from git://github.com/pivotal-sprout/sprout-rbenv.git (at master)
Fetching 'sprout-ruby' from git://github.com/pivotal-sprout/sprout-ruby.git (at master)
Fetching 'sprout-rubymine' from git://github.com/trinitronx/sprout-rubymine.git (at master)
Fetching 'sprout-ssh' from git://github.com/pivotal-sprout/sprout-ssh.git (at master)
Fetching 'sprout-terminal' from git://github.com/pivotal-sprout/sprout-terminal.git (at master)
Fetching 'sprout-vim' from git://github.com/pivotal-sprout/sprout-vim.git (at master)
Fetching 'users-lyraphase' from git://github.com/trinitronx/users-lyraphase.git (at master)
Fetching cookbook index from https://supermarket.getchef.com...
Installing apache2 (3.2.2) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing apt (5.0.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Using bash (0.1.0) from git://github.com/coffeencoke/chef-bash.git (at master)
Installing build-essential (2.2.4) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing chef_gem (0.1.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing cifs (0.1.4) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing chef-client (7.0.3) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing chef_handler (2.0.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing compat_resource (12.16.2) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing cron (3.0.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing cups (0.4.1) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Using curl (1.0.0) from git://github.com/phlipper/chef-curl.git (at master)
Installing database (6.1.1) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing dmg (3.0.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing docker (1.0.49) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Using epson-printer (0.1.0) from git://github.com/trinitronx/chef-epson-printer.git (at v0.1.0)
Installing git (4.6.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing homebrew (2.1.2) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Using hub (1.0.6) from git://github.com/trinitronx/chef-hub.git (at avoid-c)
Installing java (1.43.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Using kodi (0.1.5) from git://github.com/trinitronx/kodi.git (at v0.1.5)
Installing kubernetes (1.0.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing line (0.6.3) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing logrotate (2.1.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Using lyraphase-pi (0.3.3) from git://github.com/trinitronx/lyraphase-pi.git (at v0.3.3)
Using lyraphase_workstation (1.2.3) from git://github.com/trinitronx/lyraphase_workstation.git (at master)
Installing minitest-handler (1.5.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing mysql (8.2.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Using mythtv (0.0.4) from git://github.com/trinitronx/mythtv-cookbook.git (at always-use-latest-platform-compatible-ppa-version)
Using mythtv-saturn (0.2.0) from source at site-cookbooks/mythtv-saturn
Installing nfs (2.2.12) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing ntp (3.2.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing ohai (4.2.3) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing openssl (6.0.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Using osx (0.1.0) from git://github.com/pivotal-sprout/osx.git (at master)
Installing packages (1.0.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing parted (2.1.3) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing plist (0.9.3) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing postgresql (5.1.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing ruby-install (0.2.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Using rvm (0.10.1) from git://github.com/martinisoft/chef-rvm.git (at e840e57)
Installing selinux (0.9.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Using sprout-base (0.5.0) from git://github.com/pivotal-sprout/sprout-base.git (at master)
Using sprout-git (0.3.1) from git://github.com/pivotal-sprout/sprout-git.git (at master)
Using sprout-homebrew (0.3.0) from git://github.com/pivotal-sprout/sprout-homebrew.git (at master)
Using sprout-mysql (0.1.0) from git://github.com/pivotal-sprout/sprout-mysql.git (at master)
Using sprout-osx-apps (0.2.0) from git://github.com/pivotal-sprout/sprout-osx-apps.git (at master)
Using sprout-osx-settings (0.1.0) from git://github.com/pivotal-sprout/sprout-osx-settings.git (at master)
Using sprout-postgresql (0.1.0) from git://github.com/pivotal-sprout/sprout-postgresql.git (at master)
Using sprout-rbenv (0.1.0) from git://github.com/pivotal-sprout/sprout-rbenv.git (at master)
Using sprout-ruby (0.1.0) from git://github.com/pivotal-sprout/sprout-ruby.git (at master)
Using sprout-rubymine (0.1.0) from git://github.com/trinitronx/sprout-rubymine.git (at master)
Using sprout-ssh (0.1.0) from git://github.com/pivotal-sprout/sprout-ssh.git (at master)
Using sprout-terminal (0.1.0) from git://github.com/pivotal-sprout/sprout-terminal.git (at master)
Using sprout-vim (0.3.0) from git://github.com/pivotal-sprout/sprout-vim.git (at master)
Installing ssh_known_hosts (4.0.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing sysctl (0.8.1) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing tor (0.0.2) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing ubuntu (2.0.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing user (0.6.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing users (4.0.3) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Using users-lyraphase (0.2.4) from git://github.com/trinitronx/users-lyraphase.git (at master)
Installing vagrant (0.6.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing virtualbox (1.0.3) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing windows (1.44.3) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing yum (3.13.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing yum-epel (2.0.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io:443/api/v1)
trinitronx@saturn:lyraphase-chef(add-ubuntu-desktop-role)$ berks upload --no-freeze
The lockfile is out of sync! Run `berks install` to sync the lockfile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.