ruby-orb
ruby-orb copied to clipboard
install steps fails on osx - maybe orbs (in general) need a way to mark which architectures are supported?
Using 1.1.4 on a macOS container:
jobs:
foo:
steps:
- ruby/install:
version: 2.7.4
- ruby/install-deps
Install steps fails with:
/bin/bash: line 6: gpg: command not found
Network error: Unable to receive GPG keys. Will attempt again (1/3)
/bin/bash: line 6: gpg: command not found
Network error: Unable to receive GPG keys. Will attempt again (2/3)
/bin/bash: line 6: gpg: command not found
Unable to receive GPG keys, FAILING
Exited with code exit status 1
CircleCI received exit code 1
Fixed by manually doing:
brew install gnupg
Shouldn't need to do that. The plugin should handle it.
After doing that, it fails with:
#!/bin/bash --login -eo pipefail
rvm install 2.7.4
rvm use 2.7.4
echo . $(rvm 2.7.4 do rvm env --path) >> $BASH_ENV
Required ruby-2.7.4 is not installed.
To install do: 'rvm install "ruby-2.7.4"'
Warning! PATH is not properly set up, /Users/distiller/.gem/ruby/2.7.3/bin is not at first place.
<log>Usually this is caused by shell initialization files. Search for <code>PATH=...</code> entries.
You can also re-add RVM to your profile by running: <code>rvm get stable --auto-dotfiles</code>
To fix it temporarily in this shell session run: <code>rvm use 2.7.3</code>
To ignore this error add <code>rvm_silence_path_mismatch_check_flag=1</code> to your <code>~/.rvmrc</code> file.
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/11.4/x86_64/ruby-2.7.4.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Required ruby-2.7.4 is not installed.
ERROR: 'To install do: 'rvm install "ruby-2.7.4"'
/usr/local/bin' is not writable - it is required for Homebrew, try 'brew doctor' to fix it!
Requirements installation failed with status: 1.
Exited with code exit status 1
CircleCI received exit code 1
back logging this for now - going to escalate not having gpg on macos to our mac team.
Version 2.2.0 has updated the way Ruby < 3 is installed on MacOS and this should be solved there, so I'm closing the issue. If it is not enough, feel free to reopen or open a new one.