mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
Merge pull request #5564 from inspec/cw/fix-ed25519-kex-issue
Restrict x25519 gem to x86 architectures
This commit is contained in:
commit
f3eef435d2
1 changed files with 11 additions and 1 deletions
12
Gemfile
12
Gemfile
|
@ -20,12 +20,22 @@ end
|
|||
# but our runtime dep is still 3.9+
|
||||
gem "rspec", ">= 3.10"
|
||||
|
||||
def probably_x86?
|
||||
# We don't currently build on ARM windows, so assume x86 there
|
||||
return true if RUBY_PLATFORM =~ /windows|mswin|msys|mingw|cygwin/
|
||||
|
||||
# Otherwise rely on uname -m
|
||||
`uname -m`.match?(/^(x86_64|i\d86)/)
|
||||
end
|
||||
|
||||
group :omnibus do
|
||||
gem "rb-readline"
|
||||
gem "appbundler"
|
||||
gem "ed25519" # ed25519 ssh key support done here as its a native gem we can't put in the gemspec
|
||||
gem "bcrypt_pbkdf" # ed25519 ssh key support done here as its a native gem we can't put in the gemspec
|
||||
gem "x25519" # ed25519 KEX module
|
||||
if probably_x86?
|
||||
gem "x25519" # ed25519 KEX module, not supported on ARM
|
||||
end
|
||||
end
|
||||
|
||||
group :test do
|
||||
|
|
Loading…
Reference in a new issue