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

Question regarding environments #23

Open
kensentor opened this issue Dec 21, 2018 · 1 comment
Open

Question regarding environments #23

kensentor opened this issue Dec 21, 2018 · 1 comment

Comments

@kensentor
Copy link

This gem is a dependency of rubocop. My development machine is a Mac; my CI machine is Linux. What would be the best practice regarding the gem for these different environments?

For example, if I update my Gemfile to a version of rubocop which uses this gem and use bundle install, Bundler will put jaro_winkler-1.5.1-x86_64-darwin-17.gem into my gem cache directory. I check that in and push it up to my CI. Since you don't want your CI to be reliant on external HTTP calls, it runs bundle install --local --no-prune --no-cache. The CI then fails to find the gem:

Some gems seem to be missing from your vendor/cache directory. Could not find jaro_winkler-1.5.1 in any of the sources

I assume because it's looking for a Linux version of the build. There are other gems in my Gemfile that use native extensions, like nokogiri, which use native extensions but don't seem to have this problem. Is there a difference in the way this gem is built? Is it possible to handle this case through the Gemfile in some way? So far my ideas are pretty exotic, like deploying the gem with the CI image and then moving it into the Bundler cache directory before the CI process gets going.

@babelfish
Copy link

Having the same issue but with trying to bundle install in a docker container from a gem cache created on a mac.

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