Problems upgrading gems
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 30/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- ruby
- 領域
- backend, build-system
調査の方向性
issue に記載されている依存関係の制約から始め、assets/stylesheets/application.css.scss を調査します。特に @import の使用箇所を確認してください。プロジェクトで sprockets-sass を置き換えるべきか、その stylesheet を修正すべきかを判断し、選択した方針によって Sinatra、Rack、Sprockets、Ruby のアップグレードが可能になることを検証します。完了の条件は、stylesheet のコンパイルを壊さずに依存関係の競合が解消されていることです。
索引モデルが issue の本文から書いたものです。
説明
As it stands several key gems cannot be upgraded because of version conflicts. Specifically, v4 of sinatra depends on rack (>= 3, < 4) and that conflicts with sprockets-sass. This is because DevDocs depends on sprockets-sass, but the latest version of that is only compatible with sprockets < 4 and finally sprockets 3.75 (the highest version compatible with sprockets-sass) requires rack <3.
In short, we can't upgrade sinatra or rack because there's no compatible version of sprockets-sass and that's unmaintained at this point.
What sprocket-sass is doing
It enables @import statements to work in .scss files, including when the imported file is an ERB that in turn compiles to SCSS (that compiles to CSS). The main place this happens is
https://github.com/freeCodeCamp/devdocs/blob/2c5b5bd25985101fa2f06c28bb9bae15d821bfbc/assets/stylesheets/application.css.scss
What can be done
I see two potential paths forward
- Fork
sprockets-sassand make it compatible withsprockets4 (and Ruby 3) - Inline the imports and convert
application.css.scsstoapplication.css.scss.erb, which should work since the issuesprockets-sasssolved was specifically@importingfiles, not compiling .erb files.
I'm not sure how long 1. would take. I looked into it, but I didn't make much headway.
Option 2. would be ugly, but not awful. Reason being, the imported files are not used more than once, so the code wouldn't get any less DRY. We would end up with one massive file, though.
- 主要言語
- Ruby
- スター
- 39.7k
- フォーク
- 2.7k
- 平均マージ
- 5日 10時間
- マージ済み PR(30日)
- 13
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
freeCodeCamp/devdocs のほかの issue
-
docs/improvement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
freeCodeCamp/devdocs#1989 · コメント 4 件 · リアクション 4 件 ·
メンテナーはふだん 2 日以内に返信
-
Documentation versions report for November 2026対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
freeCodeCamp/devdocs#2794 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
freeCodeCamp/devdocs#2780 ·
メンテナーはふだん 2 日以内に返信
-
sidebarオープンfeature
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
freeCodeCamp/devdocs#2776 ·
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 8/100
freeCodeCamp/devdocs#2746 ·
メンテナーはふだん 2 日以内に返信
freeCodeCamp/devdocs の issue をすべて見る
似ている issue
-
Suggest link: Destiny Verify (MIT zero-dependency pre-commit security, citation & link hygiene CLI)オープン
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
TheOdinProject/curriculum#31585 ·
メンテナーはふだん 1 日以内に返信
-
enhancement P2 v1.6.0
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
No test checks that judges print creates nested output directories (lib/judges/commands/print.rb:62)対応中かも @sherenkov が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
yegor256/judges#1360 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
zold-io/wts.zold.io#654 ·
メンテナーはふだん 1 日以内に返信