質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Circle CI

Circle CIは、クラウド上に簡単にCI環境を構築できるWebサービスです。GitHubと連携させ、CIしたいリポジトリーを選択しビルド・テストを行います。チャット等を利用して結果を確認することが可能です。

Q&A

0回答

2876閲覧

Circle CIのbundle installが通らない(Rails5 & simple_form)

randosel

総合スコア37

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Circle CI

Circle CIは、クラウド上に簡単にCI環境を構築できるWebサービスです。GitHubと連携させ、CIしたいリポジトリーを選択しビルド・テストを行います。チャット等を利用して結果を確認することが可能です。

0グッド

0クリップ

投稿2016/09/18 05:07

編集2016/09/18 05:39

Rails5アプリ内でSimple_formを使用しております。
simple_formはRails5用のブランチが用意されており、Gemfileには以下のように記述しています。
gem 'simple_form', github: 'kesha-antonov/simple_form', branch: 'rails-5-0'

開発環境ではこれで通るのですが、Circle CIに通した際にはエラーとなり手が出せない状態です。
sshで入って、libv8、simple_formをそれぞれインストール、'/home/ubuntu/app/vendor/bundle/ruby/2.3.0/cache/bundler/git/simple_form-f9aa705c79765ebcba3e937a1357edd7854a4746'を削除した後、正常に動作します。しかし、exit後、再度circle ci上でrunningすると同様のエラーが出てしまいます。
この場合どうすれば良いのでしょうか。。

bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3 Your Gemfile lists the gem pry-rails (>= 0) more than once. You should probably keep only one of them. While it's not a problem now, it could cause errors if you change the version of just one of them later. The following gems are missing * libv8 (3.16.14.15) * simple_form (3.2.1) Install missing gems with `bundle install` Your Gemfile lists the gem pry-rails (>= 0) more than once. You should probably keep only one of them. While it's not a problem now, it could cause errors if you change the version of just one of them later. Fetching gem metadata from https://rubygems.org/ Fetching version metadata from https://rubygems.org/ Fetching dependency metadata from https://rubygems.org/ Fetching git://github.com/kesha-antonov/simple_form.git fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository Retrying git fetch --force --quiet --tags 'git://github.com/kesha-antonov/simple_form.git' "refs/heads/*:refs/heads/*" due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags 'git://github.com/kesha-antonov/simple_form.git' "refs/heads/*:refs/heads/*"` in directory /home/ubuntu/app/vendor/bundle/ruby/2.3.0/cache/bundler/git/simple_form-f9aa705c79765ebcba3e937a1357edd7854a4746 has failed. If this error persists you could try removing the cache directory '/home/ubuntu/app/vendor/bundle/ruby/2.3.0/cache/bundler/git/simple_form-f9aa705c79765ebcba3e937a1357edd7854a4746' fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository Retrying git fetch --force --quiet --tags 'git://github.com/kesha-antonov/simple_form.git' "refs/heads/*:refs/heads/*" due to error (3/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags 'git://github.com/kesha-antonov/simple_form.git' "refs/heads/*:refs/heads/*"` in directory /home/ubuntu/app/vendor/bundle/ruby/2.3.0/cache/bundler/git/simple_form-f9aa705c79765ebcba3e937a1357edd7854a4746 has failed. If this error persists you could try removing the cache directory '/home/ubuntu/app/vendor/bundle/ruby/2.3.0/cache/bundler/git/simple_form-f9aa705c79765ebcba3e937a1357edd7854a4746' fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository Retrying git fetch --force --quiet --tags 'git://github.com/kesha-antonov/simple_form.git' "refs/heads/*:refs/heads/*" due to error (4/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags 'git://github.com/kesha-antonov/simple_form.git' "refs/heads/*:refs/heads/*"` in directory /home/ubuntu/app/vendor/bundle/ruby/2.3.0/cache/bundler/git/simple_form-f9aa705c79765ebcba3e937a1357edd7854a4746 has failed. If this error persists you could try removing the cache directory '/home/ubuntu/app/vendor/bundle/ruby/2.3.0/cache/bundler/git/simple_form-f9aa705c79765ebcba3e937a1357edd7854a4746' fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository it error: command `git fetch --force --quiet --tags 'git://github.com/kesha-antonov/simple_form.git' "refs/heads/*:refs/heads/*"` in directory /home/ubuntu/app/vendor/bundle/ruby/2.3.0/cache/bundler/git/simple_form-f9aa705c79765ebcba3e937a1357edd7854a4746 has failed. If this error persists you could try removing the cache directory '/home/ubuntu/app/vendor/bundle/ruby/2.3.0/cache/bundler/git/simple_form-f9aa705c79765ebcba3e937a1357edd7854a4746' bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3 returned exit code 11 Action failed: bundle install

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問