-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: fix update script for mac silicon #2073
Conversation
functions.sh
Outdated
@@ -32,6 +32,9 @@ function get_arch() { | |||
s390x) | |||
arch="s390x" | |||
;; | |||
arm64) | |||
arch="amd64" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the mismatch arch here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm also confused here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dunno, but it produces the correct diff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aaah, this should be arm64 just like the one below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see OP - that gives the wrong diff
I don't think this is right. It should explicitly define the arch |
Feel free to push to this branch 😀 |
What is broken that this fixes? |
Running the update script on arm64 macs (see linked #1848) |
Ooooh, the diff you posted is what you get before the fix. |
No, the diff is if I do |
92ec633
to
8739d1e
Compare
@SimenB @PeterDaveHello fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
script works correctly for me now, thanks @LaurentGoderre!
Not sure if the fix is correct for linux arm64, but we can cross that bridge if we ever get to it 😀 Ideally your own arch shouldn't impact the update scripts anyways, but w/e
Somebody else needs to approve as I'm not allowed as the author 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's give it a try.
Fixes #1848, but I'm not sure if it's the correct fix.
If I set
arch
asarm64
, I get this diff:which seems wrong 😀