You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
Upon bundle instastall, Bundler complained of a nonexistant binstub. This binstub should not exist in the listed location anyways:
Using beaker-vcloud 0.2.0 from puppetlabs/beaker-vcloud (at ~/Projects/beaker-vcloud@0c2fa2b)
`~/Projects/beaker-vcloud/bin/beaker` does not exist, maybe `gem pristine beaker-vcloud` will fix it?
Related, rbenv-bundler is installed, however $ beaker fails although $ bundle exec beaker works fine.
I ran the command bundle pristine as suggested by Bundler in the binstub message.
What did you expect to happen?
I expected Bundler to make my gems pristine. Or at least to cause no change, since I had just run $ bundle install.
What happened instead?
Instead, bundler completely deleted the local git repository for beaker-vcloud. It appears that the pristine process for git-source gems is to re-clone them. Obviously, a local repo (which may be installed from a fork, different from the listed repo in the Gemfile) contains information about its origin which makes it impossible to re-clone if it's been cleaned. Either way, pristine should not scrub the .git directory as it appears to be doing.
Have you tried any solutions posted on similar issues in our issue tracker, stack overflow, or google?
NoMethodError: undefined method `remotes' for #<Bundler::Source::Git:0x00007feb7695c270>
Did you mean? remote!
~/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.2/lib/bundler/installer/gem_installer.rb:47:in `gem_install_message'
~/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.2/lib/bundler/installer/gem_installer.rb:39:in `failure_message'
~/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.2/lib/bundler/installer/gem_installer.rb:34:in `specific_failure_message'
~/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.2/lib/bundler/installer/gem_installer.rb:25:in `rescue in install_from_spec'
~/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.2/lib/bundler/installer/gem_installer.rb:15:in `install_from_spec'
~/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.2/lib/bundler/cli/pristine.rb:39:in `block in run'
~/.rbenv/versions/2.5.1/lib/ruby/2.5.0/forwardable.rb:229:in `each'
~/.rbenv/versions/2.5.1/lib/ruby/2.5.0/forwardable.rb:229:in `each'
~/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.2/lib/bundler/cli/pristine.rb:15:in `run'
~/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.2/lib/bundler/cli.rb:638:in `pristine'
~/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
~/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
~/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.2/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
~/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.2/lib/bundler/cli.rb:27:in `dispatch'
~/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.2/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
~/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.2/lib/bundler/cli.rb:18:in `start'
~/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.2/exe/bundle:30:in `block in <top (required)>'
~/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.2/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
~/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.2/exe/bundle:22:in `<top (required)>'
~/.rbenv/versions/2.5.1/bin/bundle:23:in `load'
~/.rbenv/versions/2.5.1/bin/bundle:23:in `<main>'
Environment
Bundler 1.16.2
Platforms ruby, x86_64-darwin-17
Ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
Full Path ~/.rbenv/versions/2.5.1/bin/ruby
Config Dir ~/.rbenv/versions/2.5.1/etc
RubyGems 2.7.6
Gem Home ~/Projects/beaker/vendor/bundle/ruby/2.5.0
Gem Path
User Path ~/.gem/ruby/2.5.0
Bin Dir ~/Projects/beaker/vendor/bundle/ruby/2.5.0/bin
OpenSSL
Compiled OpenSSL 1.0.2o 27 Mar 2018
Loaded OpenSSL 1.0.2o 27 Mar 2018
Cert File /usr/local/etc/openssl/cert.pem
Cert Dir /usr/local/etc/openssl/certs
Tools
Git 2.15.1
RVM not installed
rbenv rbenv 1.1.1
chruby not installed
Bundler Build Metadata
Built At 2018-05-16
Git SHA 9f7bf0ac3
Released Version true
Bundler settings
local.beaker-vcloud
Set for the current user (~/.bundle/config): "~/Projects/beaker-vcloud"
path
Set for your local app (~/Projects/beaker/.bundle/config): "./vendor/bundle"
Gemfile
Gemfile
sourceENV['GEM_SOURCE'] || "https://rubygems.org"gemspec# This section of the gemspec is for Puppet CI; it will pull in# a supported beaker library for testing to overwrite the gemspec if# a corresponding ENV var is found. Currently, the only supported lib# is beaker-pe, which can be injected into the dependencies when the# following ENV vars are defined: BEAKER_PE_PR_AUTHOR,# BEAKER_PE_PR_COMMIT, BEAKER_PE_PR_REPO_URL. These correspond to the# ghprb variables ghprbPullAuthorLogin, ghprbActualCommit,# and ghprbAuthorRepoGitUrl respectively. In the "future", we should# make this a standard format so we can pull in more than predefined# variables.ifENV['BEAKER_PE_PR_REPO_URL']lib=ENV['BEAKER_PE_PR_REPO_URL'].match(/\/([^\/]+)\.git$/)[1]author=ENV['BEAKER_PE_PR_AUTHOR']ref=ENV['BEAKER_PE_PR_COMMIT']gemlib,:git=>"git@github.com:#{author}/#{lib}.git",:branch=>refend# This line not standard in puppetlabs/beakergem'beaker-vcloud',:git=>'puppetlabs/beaker-vcloud',:branch=>'master'
--- ERROR REPORT TEMPLATE -------------------------------------------------------
Error Report
Questions
What did you do?
I configured a gem dependency to use a local git repository:
Upon
bundle instastall
, Bundler complained of a nonexistant binstub. This binstub should not exist in the listed location anyways:Related,
rbenv-bundler
is installed, however$ beaker
fails although$ bundle exec beaker
works fine.I ran the command
bundle pristine
as suggested by Bundler in the binstub message.What did you expect to happen?
I expected Bundler to make my gems pristine. Or at least to cause no change, since I had just run
$ bundle install
.What happened instead?
Instead, bundler completely deleted the local git repository for beaker-vcloud. It appears that the
pristine
process for git-source gems is to re-clone them. Obviously, a local repo (which may be installed from a fork, different from the listed repo in the Gemfile) contains information about its origin which makes it impossible to re-clone if it's been cleaned. Either way, pristine should not scrub the.git
directory as it appears to be doing.Have you tried any solutions posted on similar issues in our issue tracker, stack overflow, or google?
This may be helped by NoMethodError: undefined method
remotes' for #<Bundler::Source::Gemspec:0x47101377289620 source at
.`> Did you mean? remote! #6563, however that does not provide a clean solution.Have you read our issues document, https://github.com/bundler/bundler/blob/master/doc/contributing/ISSUES.md?
Yes.
Backtrace
Environment
Bundler Build Metadata
Bundler settings
Gemfile
Gemfile
Gemfile.lock
Gemspecs
beaker.gemspec
--- TEMPLATE END ----------------------------------------------------------------
The text was updated successfully, but these errors were encountered: