Module: Devfile

Defined in:
lib/devfile.rb,
lib/ruby_cpu_to_go_arch.rb

Overview

Module that works with the Devfile standard

Defined Under Namespace

Classes: CliError, Parser, UnsupportedPlatform

Constant Summary collapse

RUBY_CPU_TO_GOARCH =

Gem::Platform.local.cpu can return a varied arch depending on the distribution, but they still refer to the same arch

{
  'x86_64' => 'amd64',
  'aarch64' => 'arm64',
  'amd64' => 'amd64',
  'arm64' => 'arm64',
  'universal' => 'arm64'
  # This exist because if Rosetta is enabled on mac, it means both arm and amd64 bianries
  # can be run so the gem lib sets the CPU as "universal".
  # see: https://developer.apple.com/documentation/apple-silicon/about-the-rosetta-translation-environment
}.freeze