We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d09ff92 commit 7071802Copy full SHA for 7071802
src/github.rs
@@ -204,7 +204,9 @@ pub async fn command_fetch_release_distributions(args: &ArgMatches) -> Result<()
204
205
let name = zf.name().to_string();
206
207
- if let Some((triple, release)) = RELEASE_TRIPLES.iter().find_map(|(triple, release)| {
+ // Iterate over `RELEASE_TRIPLES` in reverse-order to ensure that if any triple is a
208
+ // substring of another, the longest match is used.
209
+ if let Some((triple, release)) = RELEASE_TRIPLES.iter().rev().find_map(|(triple, release)| {
210
if name.contains(triple) {
211
Some((triple, release))
212
} else {
0 commit comments