Method: Bundler::Definition#validate_platforms!
- Defined in:
- lib/bundler/definition.rb
#validate_platforms! ⇒ Object
459 460 461 462 463 464 465 |
# File 'lib/bundler/definition.rb', line 459 def validate_platforms! return if current_platform_locked? || @platforms.include?(Gem::Platform::RUBY) raise ProductionError, "Your bundle only supports platforms #{@platforms.map(&:to_s)} " \ "but your local platform is #{local_platform}. " \ "Add the current platform to the lockfile with\n`bundle lock --add-platform #{local_platform}` and try again." end |