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

build-in-docker.sh がエラーになる #61

Closed
miyajan opened this issue Dec 16, 2019 · 3 comments
Closed

build-in-docker.sh がエラーになる #61

miyajan opened this issue Dec 16, 2019 · 3 comments
Assignees

Comments

@miyajan
Copy link

miyajan commented Dec 16, 2019

最新の vvakame/review イメージだと、bundler のバージョンが Gemfile.lock に BUNDLED WITH で書かれているバージョンの 1.15.3 と合わずにエラーになるようです。

$ ./build-in-docker.sh 
(省略)
+ bundle install --path vendor/bundle
Traceback (most recent call last):
	2: from /usr/local/bin/bundle:23:in `<main>'
	1: from /usr/lib/ruby/2.5.0/rubygems.rb:303:in `activate_bin_path'
/usr/lib/ruby/2.5.0/rubygems.rb:284:in `find_spec_for_exe': Could not find 'bundler' (1.15.3) required by your /book/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:1.15.3`

> [email protected] pdf /book
> grunt pdf

Running "clean:review" (clean) task
>> 0 paths cleaned.

Running "clean:publish" (clean) task
>> 0 paths cleaned.

Running "shell:preprocess" (shell) task
/usr/lib/ruby/2.5.0/rubygems.rb:284:in `find_spec_for_exe': Could not find 'bundler' (1.15.3) required by your /book/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:1.15.3`
	from /usr/lib/ruby/2.5.0/rubygems.rb:303:in `activate_bin_path'
	from /usr/local/bin/bundle:23:in `<main>'
Warning: Command failed: bundle exec review-preproc -r --tabwidth=2 *.re
/usr/lib/ruby/2.5.0/rubygems.rb:284:in `find_spec_for_exe': Could not find 'bundler' (1.15.3) required by your /book/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:1.15.3`
	from /usr/lib/ruby/2.5.0/rubygems.rb:303:in `activate_bin_path'
	from /usr/local/bin/bundle:23:in `<main>'
 Use --force to continue.

Aborted due to warnings.
npm ERR! code ELIFECYCLE
npm ERR! errno 6
npm ERR! [email protected] pdf: `grunt pdf`
npm ERR! Exit status 6
npm ERR! 
npm ERR! Failed at the [email protected] pdf script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-12-16T13_02_41_051Z-debug.log

回避策として、Gemfile.lock の BUNDLED WITH を 2.0.3 にすればビルドできることを確認しました。ただ、自分が ruby に詳しくないためこの修正が適切なのかよくわからず、すみませんがご対応お願いいたします。

素晴らしい書籍の公開ありがとうございます!

@mhidaka
Copy link
Member

mhidaka commented Dec 16, 2019

ご報告ありがとうございます。確認しますね

@vvakame vvakame self-assigned this Dec 16, 2019
@vvakame
Copy link
Member

vvakame commented Dec 16, 2019

docker imageのhashを固定するのがよさそうですね…。
このリポジトリはメンテナンスモードとして、雛形の利用は https://github.com/TechBooster/ReVIEW-Template を促すのがよさそうです。

@mhidaka
Copy link
Member

mhidaka commented Nov 4, 2023

ただいま久方ぶりに #62 でRe:VIEW 5.8に対応した第3版を準備中です。最新に更新予定です。

@mhidaka mhidaka closed this as completed Nov 4, 2023
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

3 participants