-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix: assets ending in ".$OS.$ARCH" #71
base: master
Are you sure you want to change the base?
Conversation
Hi, thanks for your PR! I'm pretty finicky about my projects (see this blog post for details), so I rarely merge a PR as-is. I can move forward on your PR in one of two ways:
Please let me know which approach you'd prefer. If I don't hear from you before I get around to working on this PR I'll go with option #1. Thanks again for your contribution! |
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.
Thanks for this fix. This looks good % some small stuff. I can make the changes myself or you can do it if you'd prefer. Please let me know.
ubi/src/os.rs
Outdated
pub(crate) static PLATFORM_RE: Lazy<Regex> = Lazy::new(|| { | ||
Regex::new( | ||
&[all_oses_re(), all_arches_re()] | ||
.iter() | ||
.map(|r| format!("({})", r.as_str())) | ||
.join("|"), | ||
) | ||
.unwrap() | ||
}); |
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 think this can be constructed in the extension
module by importing the relevant fns from os
and arch
.
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.
idk how significant it is but won't that involve recompiling the final regex many times?
Fixes jdx/mise#2854