ruby plugin: be smarter about arch-specific paths
Metadata
Current evaluation
Ruby plugin architecture-path handling was fixed by replacing hard-coded amd64/i386 paths with glob-based detection; PR #1730 merged as commit befa5c307.
Resolution: closed resolved
Reason: PR #1730 was merged and implemented the fix in commit befa5c307. The change replaced hard-coded Ruby architecture paths with glob detection, enabling support across supported architectures.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)?
- [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)?
- [x] Have you successfully run `./runtests.sh static`?
- [x] Have you successfully run `./runtests.sh unit`?
-----
Ruby uses some pretty convoluted rules for generating its arch-specific paths, some of which is hard-coded. This path follows a different pattern depending on the architecture on which it runs. As a result, the current Ruby plugin doesn't work on any arch other than amd64 and i386.
Rather than try and be smart about these paths, use globbing to detect them using files we know are in there. That will allow this plugin to start working across all supported architectures.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Ruby plugin architecture-path handling was fixed by replacing hard-coded amd64/i386 paths with glob-based detection; PR #1730 merged as commit befa5c307. | |
| stealth/space-bunny-alpha | — | closed resolved | Ruby architecture-path support was merged in #1730 (commit befa5c307), replacing hard-coded paths with glob-based detection so the plugin works beyond amd64 and i386. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged. Updated the Ruby plugin to dynamically detect architecture-specific paths via globbing instead of hard-coded rules, enabling cross-architecture support. Approved by reviewer, passed CI, and modified 2 files. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a Ruby plugin update replacing hard-coded architecture path rules with dynamic globbing. This resolves cross-architecture compatibility, enabling proper path detection for all platforms beyond amd64 and i386. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1413 Ruby plugin paths are inconsistent | craft-parts | closed | Fixed by merged PR #1414 (commit df9bfb48), standardizing Ruby interpreter, gem, bundle, and executable paths so gem and bundle installs use the system gem path. |