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

jekyll bundle version #106

Open
fnoop opened this issue Apr 23, 2020 · 5 comments
Open

jekyll bundle version #106

fnoop opened this issue Apr 23, 2020 · 5 comments

Comments

@fnoop
Copy link
Member

fnoop commented Apr 23, 2020

When trying to build the odcs with jekyll, getting this error:

Notice: /Stage[main]/Maverick_web::Maverick_docs/Exec[build-devframe_docs]/returns: /usr/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)
Notice: /Stage[main]/Maverick_web::Maverick_docs/Exec[build-devframe_docs]/returns: 	from /usr/lib/ruby/2.5.0/rubygems.rb:308:in `activate_bin_path'
Notice: /Stage[main]/Maverick_web::Maverick_docs/Exec[build-devframe_docs]/returns: 	from /usr/local/bin/bundle:23:in `<main>'
Error: '/usr/local/bin/bundle exec jekyll build' returned 1 instead of one of [0]
Error: /Stage[main]/Maverick_web::Maverick_docs/Exec[build-devframe_docs]/returns: change from 'notrun' to ['0'] failed: '/usr/local/bin/bundle exec jekyll build' returned 1 instead of one of [0]

The issue is explained here:
https://bundler.io/blog/2019/05/14/solutions-for-cant-find-gem-bundler-with-executable-bundle.html

Doing a system update of gem (gem update --system) is not a good solution - it seems to update some fundamental components enough that it sends puppet absolutely haywire and completely breaks maverick configure. Updating ruby is not a sensible option on most systems. The easiest fix is simply to remove the BUNDLED version in Gemfile.lock:

BUNDLED WITH
-   2.1.2
@cglusky
Copy link
Member

cglusky commented Apr 23, 2020

Can do that for each versioned release. Just going to come back with each commit for working branch. And I am working from master for docs. Does that work for you?

@fnoop
Copy link
Member Author

fnoop commented Apr 23, 2020

These comments suggest to bump the version up to something high, but that doesn't work.
rubygems/bundler-features#88 (comment)
rubygems/bundler#3697 (comment)

I guess the only option is either to keep manually removing it from the lockfile, or fix a version of bundler that doesn't get changed for as long as possible, so we can document it for other contributors, and can be set as a parameter in maverick manifest for the devframe docs.

Seems like a really strange thing to do - reading the comments above and lots of other similar ones not one that a lot of ruby developers agree with..

@cglusky
Copy link
Member

cglusky commented Apr 23, 2020

seems to be restrictive. and not clear if there is a reason, which never makes things better. right now my last local build totally locked up. and all i did was add a few images. so have to get that fixed first.

@cglusky
Copy link
Member

cglusky commented Apr 23, 2020

@fnoop
Copy link
Member Author

fnoop commented Apr 24, 2020

It's not a minimum version that's needed - it's the exact version. I had bundler 2.1.4 installed (the latest, I think, currently), but it needed exactly 2.1.2 to work. Any other version produced the same cryptic error.

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