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

The bundle currently has mimemagic locked at 0.3.5. #47

Closed
x1wins opened this issue Apr 22, 2021 · 2 comments · Fixed by #48
Closed

The bundle currently has mimemagic locked at 0.3.5. #47

x1wins opened this issue Apr 22, 2021 · 2 comments · Fixed by #48
Assignees
Labels
dependencies Pull requests that update a dependency file system-error

Comments

@x1wins
Copy link
Owner

x1wins commented Apr 22, 2021

Step 10/16 : RUN bundle install
---> Running in 578d62fab6ac
Fetching gem metadata from https://rubygems.org/............
You have requested:
 mimemagic ~> 0.4.1
The bundle currently has mimemagic locked at 0.3.5.
Try running `bundle update mimemagic`
If you are updating multiple gems in your Gemfile at once,
try passing them all to `bundle update`
ERROR: Service 'web' failed to build: The command '/bin/sh -c bundle install' returned a non-zero code: 7
The command "docker-compose build" failed and exited with 1 during .
Your build has been stopped.
@x1wins x1wins self-assigned this Apr 22, 2021
@x1wins x1wins added dependencies Pull requests that update a dependency file system-error labels Apr 22, 2021
@x1wins
Copy link
Owner Author

x1wins commented Apr 22, 2021

rails/rails#41750
https://stackoverflow.com/q/66919504/1399891

Trouble
rails/rails#41750 (comment)
mimemagic gem got licence problem. they did lock 0.3.x version.

Solve
i have to update Gemfile, Gemfile.lock and then push to git remote origin.
if there not updated Gemfile.lock, travis ci will make build error.

if you use docker-compose
docker-compose run --no-deps web bundle update mimemagic
if you not use docker-compose
bundle update mimemagic

@x1wins x1wins linked a pull request Apr 22, 2021 that will close this issue
@x1wins
Copy link
Owner Author

x1wins commented Jan 26, 2022

if not working with docker-compose run --no-deps web bundle update mimemagic
Try get below listed command

  1. Change RUN bundle install to RUN bundle update in Dockerfile
  2. % docker-compose -f docker-compose-dev.yml run web bundle update
  3. Recover RUN bundle update to RUN bundle install in Dockerfile
  4. % docker-compose -f docker-compose-dev.yml up --build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file system-error
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant