Skip to content

Commit 0a0a5fb

Browse files
committed
fix(github): narrow x86 fallback scope
1 parent f99e07a commit 0a0a5fb

2 files changed

Lines changed: 1 addition & 26 deletions

File tree

src/backend/asset_matcher.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,6 @@ impl AssetPicker {
424424
|| asset.ends_with(".intoto")
425425
|| asset.ends_with(".attestation")
426426
|| asset.ends_with(".pem")
427-
|| asset.ends_with(".cert")
428427
|| asset.ends_with(".crt")
429428
|| asset.ends_with(".key")
430429
|| asset.ends_with(".pub")
@@ -1354,7 +1353,6 @@ abc123def456abc123def456abc123def456abc123def456abc123def456abcd tool-1.0.0-dar
13541353
let assets = vec![
13551354
"opengrep-core_linux_x86.tar.gz".to_string(),
13561355
"opengrep_manylinux_x86".to_string(),
1357-
"opengrep_manylinux_x86.cert".to_string(),
13581356
"opengrep_manylinux_x86.sig".to_string(),
13591357
"opengrep_musllinux_x86".to_string(),
13601358
];

src/backend/static_helpers.rs

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,7 @@ pub async fn fetch_checksum_from_file(checksum_url: &str, algo: &str) -> Option<
7171

7272
// Shared OS/arch patterns used across helpers
7373
const OS_PATTERNS: &[&str] = &[
74-
"linux",
75-
"manylinux",
76-
"musllinux",
77-
"darwin",
78-
"macos",
79-
"osx",
80-
"windows",
81-
"win",
82-
"freebsd",
83-
"openbsd",
84-
"netbsd",
85-
"android",
74+
"linux", "darwin", "macos", "windows", "win", "freebsd", "openbsd", "netbsd", "android",
8675
"unknown",
8776
];
8877
// Longer arch patterns first to avoid partial matches
@@ -1092,18 +1081,6 @@ mod tests {
10921081
clean_binary_name("app-linux.AppImage", None),
10931082
"app.AppImage"
10941083
);
1095-
assert_eq!(
1096-
clean_binary_name("opengrep_osx_arm64", Some("opengrep/opengrep")),
1097-
"opengrep"
1098-
);
1099-
assert_eq!(
1100-
clean_binary_name("opengrep_manylinux_x86", Some("opengrep/opengrep")),
1101-
"opengrep"
1102-
);
1103-
assert_eq!(
1104-
clean_binary_name("opengrep_musllinux_x86", Some("opengrep/opengrep")),
1105-
"opengrep"
1106-
);
11071084

11081085
// Test edge cases
11091086
assert_eq!(clean_binary_name("linux", None), "linux"); // Just OS name

0 commit comments

Comments
 (0)