Skip to content

9.3 : Gem::LoadError: You have already activated ffi 1.15.1, but your Gemfile requires ffi 1.15.3.  #6751

@HoneyryderChuck

Description

@HoneyryderChuck

Continuing after fixing #6732 , I'm seeing an issue when testing on Windows, using jruby-head and ffi, namely, there's a conflict between a "loose" dependency, and what jruby perceives as the default gem version.

The dependency is set like:

# in gemspec
spec.add_dependency "ffi", ["~> 1.12"]

The error message is:

Gem::LoadError: You have already activated ffi 1.15.1, but your Gemfile requires ffi 1.15.3. Since ffi is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports ffi as a default gem.

Build log here: https://github.com/HoneyryderChuck/idnx/runs/3044772603?check_suite_focus=true

It's worth noting that this issue happens only on windows (if you run through the other jruby jobs, on mac and linux, all is well).

Is the change a plain bundler update, or is it more involved?

Environment Information

Provide at least:

  • JRuby version: 9.3 (head)
  • Operating system and platform: Windows (Github actions CI)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions