Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Bundler::LockfileError) #68

Open
kerolloz opened this issue Feb 5, 2020 · 6 comments
Open

(Bundler::LockfileError) #68

kerolloz opened this issue Feb 5, 2020 · 6 comments

Comments

@kerolloz
Copy link

kerolloz commented Feb 5, 2020

running docker run -it --rm -v "$PWD":/usr/src/app -p "4000:4000" starefossen/github-pages results in

Traceback (most recent call last):
        13: from /usr/local/bundle/bin/jekyll:23:in `<main>'
        12: from /usr/local/bundle/bin/jekyll:23:in `load'
        11: from /usr/local/bundle/gems/jekyll-3.8.5/exe/jekyll:11:in `<top (required)>'
        10: from /usr/local/bundle/gems/jekyll-3.8.5/lib/jekyll/plugin_manager.rb:50:in `require_from_bundler'
         9: from /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.3/lib/bundler.rb:101:in `setup'
         8: from /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.3/lib/bundler.rb:135:in `definition'
         7: from /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.3/lib/bundler/definition.rb:35:in `build'
         6: from /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.3/lib/bundler/dsl.rb:13:in `evaluate'
         5: from /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.3/lib/bundler/dsl.rb:218:in `to_definition'
         4: from /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.3/lib/bundler/dsl.rb:218:in `new'
         3: from /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.3/lib/bundler/definition.rb:84:in `initialize'
         2: from /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.3/lib/bundler/definition.rb:84:in `new'
         1: from /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.3/lib/bundler/lockfile_parser.rb:95:in `initialize'
/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.3/lib/bundler/lockfile_parser.rb:108:in `warn_for_outdated_bundler_version': You must use Bundler 2 or greater with this lockfile. (Bundler::LockfileError)
@dellagustin
Copy link

I have just tried out this image and faced the same issue.

@dellagustin
Copy link

This seems to be a duplicate of #61

@kerolloz
Copy link
Author

Just remove gem lock file

@dellagustin
Copy link

dellagustin commented Mar 18, 2020

@dellagustin
Copy link

It moved forward, but immemorially stumbled on the next error: Could not find gem 'jekyll-feed (~> 0.12)' in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound)

This is a freshly generated site with jekyll new

@dellagustin
Copy link

Ok, nevermind, I commented every other gem installation from the Gemfile that was not the github-pages.

I understand that actually the Gemfile is not even necessary (if I got it correctly) when running with this docker image or pushing it to github, but I wanted to have it for contributors that want to set the development environment locally without docker.

Removing the jekyll-feed gem makes sense since it is already included in the github-pages gem, but the following lines look like they may make sense for the people running it native in some platforms, and they cause conflict with this docker image:

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
  gem "tzinfo", "~> 1.2"
  gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants