-
Notifications
You must be signed in to change notification settings - Fork 139
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
(bugfix): improve gh-r
binary selection logic
#171
Conversation
zinit-install.zsh
Outdated
list2=( ${list[@]:#(#i)*.(sha[[:digit:]]#|asc)} ) | ||
list2=( ${(M)list[@]:#(#i)*${~matchstr[$OSTYPE(#i)]:-${OSTYPE#(#i)}}*} ) | ||
|
||
+zinit-message "{pre}.zinit-get-latest-gh-r-url-part{msg2} DEBUG:{msg}" \ |
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.
Added as debug logging in case someone encounters edge case while testing.
Will be removed.
zinit-install.zsh
Outdated
@@ -1447,25 +1447,25 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || { | |||
local url=https://$urlpart | |||
} | |||
|
|||
# linux "((#a4)linuxmusl|musl|linux(-|_)gnu]|gnu)" |
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.
Will be removed.
I tested this pr and found 2 edge cases for my system( linux amd64 gnu )
DEBUG
DEBUG.zinit-get-latest-gh-r-url-part DEBUG: `' |
@sm1999 Do you mind sharing output of Tangential, but did this change allow you to remove any bpicks or break stuff that worked before? And most important, thank you for taking time to test this out! 🥇 👍🏻 |
@vladdoster I removed all the bpicks. working great for zoxide, gh cli, micro, bat, hyperfine, fd, lsd, Thank you for your work! |
@sm1999 -- Thanks for the info; I'll take a look sometime early this week. |
I also found out that |
zinit-install.zsh
Outdated
armv7l-2 "arm7" | ||
armv6l "(arm6|armv6)" | ||
armv6l-2 "arm" | ||
aarch64-2 "arm" |
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.
Quick question: why not using aarch64 "(aarch64|arm)"
?
Hey can we somehow help to get this merged? Zinit unfortunately does not work properly on m1 macs. |
d8d265b
to
41859ee
Compare
f742d1b
to
b3a72db
Compare
043cf01
to
af6cf92
Compare
af6cf92
to
32e7586
Compare
a46d16a
to
2177790
Compare
e48c9f3
to
83df3d6
Compare
2856906
to
6a1d73f
Compare
- fix [🐞 bug: `bpick` selects Darwin binary when using Manjaro (Arch Linux)](#160) - fix edge cases resulting in the selection of Linux binaries on Darwin and vice-versa - fix zinit incorrect selections for `linux-musl` systems Signed-off-by: Vladislav Doster <[email protected]>
6a1d73f
to
410f89d
Compare
@vladdoster why was this closed? 😢 |
bpick
selects Darwin binary when using Manjaro (ArchLinux) 🐞 bug: bick default selects darwin when using manjaro #160
vice-versa
gh-r
on Ubuntu & MacOS systems to verify logicSigned-off-by: Vladislav Doster [email protected]