Closed 36degrees closed 2 years ago
Other than hmrc/vat-roadmap, most of the instances of govuk_tech_docs and therubyracer being used together in public repos seem to be internal (in an alphagov-owned repository)
Possible options:
1) Release a new version of govuk_tech_docs that reverts middleman-autoprefixer to 8.x (we could opt to update it again in a future major version, with appropriate release notes) 2) Advise those using therubyracer to switch to using miniracer as recommended by autoprefixer-rails
@heathd has suggested that therubyracer was added to support the search functionality, but this has since (?) been re-done.
The frontend tech docs builds fine on Travis without any additional JS runtime, so assuming it also builds in other CI environments, it might be that therubyracer can now be removed from other projects entirely?
It's a bit of a mystery why those projects have added rubyracer. It seems like it was part of the middleman-search at some point:
But I can't figure out why the projects have it in their initial commit, it was never part of the template's Gemfile:
https://github.com/alphagov/tech-docs-template/commits/master/template/Gemfile
In any case, if the tests pass and site builds it should be safe to remove from Gemfiles.
@36degrees Do you know if this issue can be closed now? We've gone beyond v2.0.12 now so I'm wondering if we can assume everyone's solved their dependency issues?
@m-green I'm inclined to close this issue - I searched GitHub for projects using tech docs template and therubyracer, and there are only a handful, and most of those are unmaintained anyway.
Makes sense to me @lfdebrux - closing.
v2.0.12 bumped a load of dependencies, including bumping
middleman-autoprefixer
from 2.7 to 2.10.middleman-autoprefixer
2.10 updatesautoprefixer-rails
from 8.0 to 9.1, andautoprefixer-rails
9.0 dropped support fortherubyracer
.govuk_tech_docs
doesn’t includetherubyracer
as a dependency, so I never spotted it, but several of the techs docs repos appear to include it as an additional dependency:Dependabot PRs to update these repos to use v2.0.12 (like this one) are generally failing with:
It's also broken when trying to build using Node v4, as seen in alphagov/gds-way (https://github.com/alphagov/gds-way/pull/417):