-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
make serve
fails on ruby 3.0
#37
Comments
liskin
added a commit
to liskin/xmonad-web
that referenced
this issue
Mar 11, 2022
Ruby 3.0, which is now default in Debian (and likely many other distros), isn't officially supported by the github/pages-gem and some of its dependencies (despite patches being available for over a year—WTF), so `make serve` doesn't work. As a workaround, prefer Ruby 2.7 (the "bundle2.7" command) if available. Related: xmonad#37
liskin
added a commit
to liskin/xmonad-web
that referenced
this issue
Mar 13, 2022
Makefile: Prefer Ruby 2.7 if available Ruby 3.0, which is now default in Debian (and likely many other distros), isn't officially supported by the github/pages-gem and some of its dependencies (despite patches being available for over a year—WTF), so `make serve` doesn't work. As a workaround, prefer Ruby 2.7 (the "bundle2.7" command on Debian-based distros, "bundle-2.7" on Arch) if available. Related: xmonad#37
liskin
added a commit
to liskin/xmonad-web
that referenced
this issue
Mar 13, 2022
Ruby 3.0, which is now default in Debian (and likely many other distros), isn't officially supported by the github/pages-gem and some of its dependencies (despite patches being available for over a year—WTF), so `make serve` doesn't work. As a workaround, prefer Ruby 2.7 (the "bundle2.7" command on Debian-based distros, "bundle-2.7" on Arch) if available. Related: xmonad#37
liskin
added a commit
to liskin/work.lisk.in
that referenced
this issue
Aug 29, 2022
Ruby 3.0, which is now default in Debian (and likely many other distros), isn't officially supported by the github/pages-gem and some of its dependencies (despite patches being available for over a year—WTF), so `make serve` doesn't work. As a workaround, prefer Ruby 2.7 (the "bundle2.7" command on Debian-based distros, "bundle-2.7" on Arch) if available. Related: xmonad/xmonad-web#37
Do we want to keep eb65e5d around? |
Do we want to keep eb65e5d around?
Good question. I don't know ruby's ecosystem well enough; will 2.7 be
around for a while longer or are the changes high it'll be deprecated
soon and distributions will stop packaging it?
|
Absolutely no idea, but also: why is it important? Our Makefile now works with both 2.7 and 3.0, but still prefers 2.7, and we likely no longer need that preference. |
Mh, you're probably right. Let's just revert that then. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is not an issue with this repo per se, but it is perhaps valuable to write it down somewhere so people can find this information.
With ruby 3.0,
make serve
fails with something likeThis seems to be caused by pathutil ignoring a deprecation which is now actually a compilation error.
Further,
webrick
seems to not be bundle anymore, which means it has to be added to theGemfile
.How to fix it locally
Manually apply the patch from Fix ruby keyword parameter deprecation warnings envygeeks/pathutil#5 to the
pathutil
dir:there might be some warnings about missing tests, but this can safely be ignored.
As pointed out in Jekyll serve fails on Ruby 3.0 jekyll/jekyll#8523, add
to the gemfile or install
webrick
directly withbundle add webrick
.make serve
should now work.The text was updated successfully, but these errors were encountered: