assume-role
assume-role copied to clipboard
zsh: segmentation fault assume-role
Steps
-
$ brew install assume-role
result 🍺 /usr/local/Cellar/assume-role/0.3.1: 3 files, 7.6MB, built in 2 seconds -
assume-role dev
zsh: segmentation fault assume-role
Can I ask what platform you're on? One of my team just reported. the same thing, after Homebrew install on a new M1 ARM-chip Mac. The default Homebrew build is not going to work here since it's for x86, so likely this needs a native compile on an M1 Mac.
Same issue here. I'm on a MB Pro 2020 with M1 ARM-chip.,OSX 11.1.
First I've tried the following:
$ brew install remind101/formulae/assume-role
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
No changes to formulae.
Warning: remind101/formulae/assume-role 0.3.1 is already installed and up-to-date.
To reinstall 0.3.1, run:
brew reinstall assume-role
$ which assume-role
/opt/homebrew/bin/assume-role
$ assume-role assume-role prod
[1] 96806 segmentation fault assume-role prod
Then I've tried this:
$ arch -x86_64 brew install remind101/formulae/assume-role
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
No changes to formulae.
==> Tapping remind101/formulae
Cloning into '/usr/local/Homebrew/Library/Taps/remind101/homebrew-formulae'...
remote: Enumerating objects: 68, done.
remote: Total 68 (delta 0), reused 0 (delta 0), pack-reused 68
Unpacking objects: 100% (68/68), done.
Tapped 3 formulae (95 files, 47.2KB).
==> Installing assume-role from remind101/formulae
==> Downloading https://github.com/remind101/assume-role/releases/download/0.3.1/assume-role
Already downloaded: /Users/pablo.reynel/Library/Caches/Homebrew/downloads/dce6bb22c01221598c2a388d62cafb82e33c91eac77139414a5dd517e8df90d1--assume-role
🍺 /usr/local/Cellar/assume-role/0.3.1: 3 files, 7.6MB, built in 2 seconds
$ arch -x86_64 assume-role prod
[1] 96977 segmentation fault arch -x86_64 assume-role prod`
I ended up simply recompiling it with the Go 1.16 preview for M1. This involved setting up go modules. I will make a note to do a PR as soon as I can.
On Mon, Feb 15, 2021 at 3:55 AM Pablo Reynel [email protected] wrote:
Same issue here. I'm on a MB Pro 2020 with M1 ARM-chip.,OSX 11.1.
First I've tried the following:
`$ brew install remind101/formulae/assume-role $ which assume-role /opt/homebrew/bin/assume-role
$ assume-role assume-role prod [1] 96806 segmentation fault assume-role prod`
Then I've tried this:
`$ arch -x86_64 brew install remind101/formulae/assume-role Updating Homebrew... ==> Auto-updated Homebrew! Updated 1 tap (homebrew/core). No changes to formulae.
==> Tapping remind101/formulae Cloning into '/usr/local/Homebrew/Library/Taps/remind101/homebrew-formulae'... remote: Enumerating objects: 68, done. remote: Total 68 (delta 0), reused 0 (delta 0), pack-reused 68 Unpacking objects: 100% (68/68), done. Tapped 3 formulae (95 files, 47.2KB). ==> Installing assume-role from remind101/formulae ==> Downloading https://github.com/remind101/assume-role/releases/download/0.3.1/assume-role Already downloaded: /Users/pablo.reynel/Library/Caches/Homebrew/downloads/dce6bb22c01221598c2a388d62cafb82e33c91eac77139414a5dd517e8df90d1--assume-role 🍺 /usr/local/Cellar/assume-role/0.3.1: 3 files, 7.6MB, built in 2 seconds
$ arch -x86_64 assume-role prod [1] 96977 segmentation fault arch -x86_64 assume-role prod`
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/remind101/assume-role/issues/54#issuecomment-779173161, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIX3524QQC5VTETJPIK2APDS7EDSTANCNFSM4VXXAMLA .
I just added PR #55 which simply moves to go modules for go1.16 on Mac M1 silicon computers. Works just fine!
@madsenwattiq how where you able to make this work? I tried
go install github.com/ibisnetworks/assume-role@latest
and I got these
module declares its path as: wattiq.io/assume-role but was required as: github.com/ibisnetworks/assume-role
Thanks!
Sorry about that. I expected the original project to update their upstream for go modules, but apparently it is not being actively maintained. Let me see what I can do here.
Looking at the current PR's, @kdlcruz , I see that @anherrera has PR #58, which has a setup for go modules and thus probably a clean build on M1 silicon, AND also is updated for AWS SDK changes including SSO. I think my fork should go away and I will support folding hers into the main project -- IF we ever get any responses from Remind. If not, I think we should work from her fork and support the project. Sound reasonable?
Go ahead and fork it, @rex-remind101 is not active here. The time since the last commit should make that obvious enough.
any update on this ?
still experiencing this issue on my m1
Commented on the wrong thread. Disregard.
Go ahead and fork it, @rex-remind101 is not active here. The time since the last commit should make that obvious enough.
What fork works on M1 Macs? https://github.com/anherrera/assume-role has the same brew install instructions.
I've just stumbled upon the same issue after upgrading from Intel to M1 mac, i.e. assume-role dev
was working okay on my intel mac but once I transferred my files to M1 mac assume-role
didn't do anything.
I tried to uninstall and install assume-role
and brew
and eventually I ended up with the same error:
zsh: segmentation fault assume-role
SOLUTION: use awsume
!
brew install pipx # use pipx as this is officially recommend by awsume
pipx ensurepath
# restart your terminal
pipx install awsume
awsume-configure
awsume dev # works!
You can always check if you assumed role correctly with this command:
aws sts get-caller-identity --output text --query 'Account'
Links: https://awsu.me/general/quickstart.html https://pypa.github.io/pipx/
Just using https://github.com/danielthank/assume-role seems instead resolved the issue for me on my M1 Mac.