Skip to content

Conversation

@ramonskie
Copy link
Contributor

@ramonskie ramonskie commented Nov 24, 2025

Summary

Details

After merging PR #1127, users reported staging failures in Cloud Foundry with the error:

ERR unknown keywords: :permitted_classes, :aliases
ERR Failed to compile droplet: Failed to run finalize script: exit status 1

Root Cause: The buildpack's bin/run script checked if system Ruby exists before installing its own Ruby. When Cloud Foundry's cflinuxfs4 stack provided an older system Ruby (with Psych < 5.0), the buildpack used it instead of downloading Ruby 3.2.8. The older Psych version doesn't support the permitted_classes: and aliases: keyword arguments added in the migration.

Fix: Modified bin/run to always install and use the buildpack's own Ruby 3.2.8, removing the conditional check for system Ruby. This ensures consistent behavior across all environments.

Changes

  • bin/run: Always install buildpack Ruby instead of checking for system Ruby
  • config/ruby.yml: Added documentation comment about Ruby 3.2.8+/Psych 5.0.1+ requirement

@wjonkheijm
Copy link

I tested a push with this branch in our cflinuxfs4-compat environment and it worked for me. push/restage fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants