-
Notifications
You must be signed in to change notification settings - Fork 38
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
FFI gem can cause issues for users on Mohave #254
Comments
Brings in a bunch of accessibility fixes: https://github.com/alphagov/tech-docs-gem/blob/master/CHANGELOG.md#240 (And a few patches for bugs found along the way.) This also bumps the ffi gem which caused this issue: ffi/ffi#791 The fix at the moment is just to keep ffi at 1.12 until the issue is resolved so this also adds that to the Gemfile. There is an issue on govuk_tech_docs to pin ffi there instead of downstream apps so we should revert our pin if this happens: alphagov/tech-docs-gem#254
The tech writing team has also been experiencing this issue for a while. @PippaClarkGDS I seem to remember the Digital Identity team had a fix, but was it a workaround? |
For convenience, the options to workaround this from ffi/ffi#791 :
Also - if anyone's wondering what I think pinning ffi in this gem would cause more trouble than it's worth. Because this is a gem (not a project in its own right) we'd have to add an unnecessary direct dependency to ffi in the gemspec, and specify I think it should be up to the individual projects (e.g. gds-way, govuk-developer-docs) to decide whether to pin ffi. |
I don't think we shouldn't be pinning this:
I agree with Richard that it should be left up to individual projects on whether to pin (which I also don't think they should, but that's another matter), but it's probably worth adding something to the README in this gem with the suggested fixes if someone does come up against the issue. |
In an extremely roundabout way we could fix this by replacing the dependency on Sprockets, and using a Middleman "external pipeline" to build the JS / CSS using webpack or something. We already depend on This would remove the need for us to call ffi for anything (it would still need to be installed, through rb-inotify, but I don't think installing it is a problem, it's only when you call it it blows up). |
Users of apps consuming this gem and running on OSX Mohave (10.14) can experience an issue with the ffi gem. This adds a note to the README listing fixes for the issue. See #254 for related discussion.
I've put up a PR to add something to the README. Worth noting that the Sass project uses Dart-sass rather than sassc now, so we'll have to move away from sassc at some point anyway but I'd guess the work involved is non-trivial. I'm thinking of things like building asset paths, adding SHA hashes to them and how sprockets integrates into the asset pipeline of the consuming app* The actual building of those assets could just be done with NPM scripts. *but all this may be wrong as I've not been in rails land for years now. |
See this issue for details: alphagov/tech-docs-gem#254
Documentation has been updated, so closing this issue now. Let me know if I should reopen it. |
The
ffi
gem produces the following error for some users on Mohave (OSX 10.14.6):See ffi/ffi#791 for more details.
I have personally seen in using the GDS way and Notify's tech docs. It has also been an issue on Datagovuk's tech docs.
@timblair suggested it would make sense to pin it in here instead of the downstream projects.
I'm happy to raise a PR to pin it if this seems sensible. Alternatively, I could add a note to the docs if that would be better.
The text was updated successfully, but these errors were encountered: