-
Notifications
You must be signed in to change notification settings - Fork 337
Gemfile: depend on fiddle to avoid a Ruby warning #1119
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
Gemfile: depend on fiddle to avoid a Ruby warning #1119
Conversation
This fails on various CI jobs, not caused by our code. But it's only a development dependency, so I would say we let the |
...since it will not be shipped with Ruby after Ruby 3.5.0. For now, JRuby & TruffleRuby fail on this, so we use a platforms directive. ffi#1119 (review)
82c5e12
to
4aac33b
Compare
For the remaining failures it might be enough to install the libffi headers |
I made some educated guesses about where the headers may be.
25bc351
to
8a994d4
Compare
spec/env/Dockerfile.centos
Outdated
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* | ||
|
||
RUN yum install -y ruby-devel git gcc make redhat-rpm-config | ||
RUN yum --enablerepo=powertools install -y libffi-devel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Judging by:
#10 1.669 libffi-devel x86_64 3.1-22.el8 baseos 29 k
The guess was not correct. IOW the package is available in baseos
repo which is always enabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, I'll retry with the package in the regular list instead, then, the one on the line previous.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, I'll retry with the package in the regular list instead
Yep, that should work
After adding a libraries to the CI / specs (macos-13, 3.3)Fails in
CI / specs (windows-latest, 2.5)Can bundle install.
A warning from the installation provides us with a version number and a clue:
Fails in a test, which perhaps means that an earlier fiddle (built-in to Ruby 2.5) has been activated? (Compare to error message below.)
continuous-integration/appveyor/pr — AppVeyor build failedThis failed on Ruby 2.5 worked on Ruby 3.1. Ruby 2.5 says
|
...since it will not be shipped with Ruby after Ruby 3.5.0. For now, JRuby & TruffleRuby fail on this, so we use a platforms directive. ffi#1119 (review)
...since it will not be shipped with Ruby after Ruby 3.5.0. For now, JRuby & TruffleRuby fail on this, so we use a platforms directive. ffi#1119 (review)
...since it will not be shipped with Ruby after Ruby 3.5.0.
Details
I could see that this was a test-only dependency, so I added it to the "development" group of gems in the Gemfile.
https://github.com/search?q=repo%3Affi%2Fffi%20fiddle&type=code shows only hits in the spec directory.