Skip to content

Commit

Permalink
Add note on ffi issue to README
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tombye committed Jul 30, 2021
1 parent ddc9b86 commit c133b7a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ gem 'govuk_tech_docs', path: '../tech-docs-gem'

To preview your documentation changes locally, see the [Tech Docs Template documentation on previewing your documentation](https://tdt-documentation.london.cloudapps.digital/create_project/preview/#preview-your-documentation).

If you experience [this issue](https://github.com/alphagov/tech-docs-gem/issues/254), possible fixes can be found [here](#issue-with-ffi-on-osx-mohave).

### Use the example in this repo

To start the example in this repo, run:
Expand All @@ -46,6 +48,8 @@ bundle exec middleman server

See your website on `http://localhost:4567` in your browser.

If you experience [this issue](https://github.com/alphagov/tech-docs-gem/issues/254), possible fixes can be found [here](#issue-with-ffi-on-osx-mohave).

For more information on previewing your documentation locally, see the [Tech Docs template documentation on previewing your documentation](https://tdt-documentation.london.cloudapps.digital/create_project/preview/#preview-your-documentation).

## Tests
Expand All @@ -63,6 +67,16 @@ To run the tests and see the results in your terminal, run:
bundle exec rake jasmine:ci
```

## Issue with FFI on OSX Mohave

Users on OSX Mohave (10.14) may get this error when running `bundle exec middleman serve` on apps that use this gem.

There are 3 different ways to solve this, depending on what is possible for you. Listed here as best to worst:

1. upgrade to macOS 10.15 (Catalina) or higher
2. tell rubygems not to use the system ffi (gem inst ffi -- --disable-system-libffi)
3. pin the ffi version back to 1.12.2 in the Gemfile of your app

## Releasing new versions

To release a new version, create a new pull request (PR) that updates [version.rb](lib/govuk_tech_docs/version.rb) and [CHANGELOG.md](CHANGELOG.md).
Expand Down

0 comments on commit c133b7a

Please sign in to comment.