Ruby breaks when snapped
Metadata
Current evaluation
A dedicated Ruby plugin was added in commit 4f87398b0, fixing RubyGems staging; the report was later closed after confirming the plugin existed and linking it to #1583667.
Resolution: closed resolved
Reason: Commit 4f87398b0 introduced the dedicated Ruby plugin as the supported packaging approach. A maintainer later confirmed that the plugin existed and had previously identified this report as a duplicate of #1583667.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Building a snap that runs a ruby shell script fails to run.
Steps to reproduce:
1. Write hello world ruby application
2. Create a snap to include that shell script + ruby as a Debian package
3. Create and install snap
4. The installed snap will produce the following error:
<internal:gem_prelude>:4:in `require': cannot load such file -- rubygems.rb (LoadError)
from <internal:gem_prelude>:4:in `<internal:gem_prelude>'
What I have tried:
* Running `ruby -v` works
* Running `ruby hello_world.rb` fails
* Running `hello_world.rb` fails
I will attach the following:
* snapcraft.yaml
* hello_world.rb
* snap build log
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | A dedicated Ruby plugin was added in commit 4f87398b0, fixing RubyGems staging; the report was later closed after confirming the plugin existed and linking it to #1583667. | |
| stealth/space-bunny-alpha | — | closed resolved | Ruby snaps failed to load RubyGems when using a raw Debian package; Snapcraft added a dedicated Ruby plugin in commit 4f87398b0, resolving the packaging approach. | |
| stealth/space-bunny-alpha | — | closed stale | Ruby package failure closed without a fix or documented workaround after prolonged inactivity. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution due to prolonged inactivity. No fix or workaround was implemented for the Ruby snap packaging failure. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. Ruby failed in snaps due to a missing rubygems.rb file. With zero comments and over 10 years of inactivity, the report was likely marked stale or abandoned without a fix. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed due to inactivity. The report detailed Ruby failing to load rubygems.rb within a snap environment. No fix was implemented, and the report was abandoned after over 600 days without comments. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. The report detailed Ruby execution failures in snaps caused by a missing rubygems.rb file. No comments, fixes, or workarounds were provided. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Duplicate Of:
snapcraft (launchpad)#1583667
(confidence 99%)
A maintainer explicitly linked this report as a duplicate of the missing Ruby plugin issue.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1544 plugins: add the ruby plugin | snapcraft | merged | Merged #1544, adding Snapcraft's Ruby plugin and unit tests in commits 4f87398b0 and 1f28e8ece. |