Skip to content

Commit 50dc0e0

Browse files
avrabeclaude
andcommitted
fix: add missing tool configurations to checksum updater
Added nodejs, wizer, wkg, and tinygo configurations to tool_config.rs so the checksum updater can properly fetch release information from the correct GitHub repositories instead of falling back to incorrect defaults. This fixes the "Failed to get latest release for nodejs" error that was preventing the weekly checksum update workflow from running. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 8c248c7 commit 50dc0e0

File tree

1 file changed

+112
-0
lines changed

1 file changed

+112
-0
lines changed

tools/checksum_updater/src/tool_config.rs

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,118 @@ impl ToolConfig {
204204
},
205205
);
206206

207+
// nodejs configuration
208+
tools.insert(
209+
"nodejs".to_string(),
210+
ToolConfigEntry {
211+
github_repo: "nodejs/node".to_string(),
212+
platforms: vec![
213+
"darwin_amd64".to_string(),
214+
"darwin_arm64".to_string(),
215+
"linux_amd64".to_string(),
216+
"linux_arm64".to_string(),
217+
"windows_amd64".to_string(),
218+
],
219+
url_pattern: UrlPattern::Custom {
220+
pattern: "https://nodejs.org/dist/v{version}/node-v{version}-{platform}.tar.gz".to_string(),
221+
platform_mapping: {
222+
let mut map = HashMap::new();
223+
map.insert("darwin_amd64".to_string(), "darwin-x64".to_string());
224+
map.insert("darwin_arm64".to_string(), "darwin-arm64".to_string());
225+
map.insert("linux_amd64".to_string(), "linux-x64".to_string());
226+
map.insert("linux_arm64".to_string(), "linux-arm64".to_string());
227+
map.insert("windows_amd64".to_string(), "win-x64".to_string());
228+
map
229+
},
230+
},
231+
tag_prefix: Some("v".to_string()),
232+
},
233+
);
234+
235+
// wizer configuration
236+
tools.insert(
237+
"wizer".to_string(),
238+
ToolConfigEntry {
239+
github_repo: "bytecodealliance/wizer".to_string(),
240+
platforms: vec![
241+
"darwin_amd64".to_string(),
242+
"darwin_arm64".to_string(),
243+
"linux_amd64".to_string(),
244+
"linux_arm64".to_string(),
245+
"windows_amd64".to_string(),
246+
],
247+
url_pattern: UrlPattern::Custom {
248+
pattern: "https://github.com/bytecodealliance/wizer/releases/download/v{version}/wizer-v{version}-{platform}".to_string(),
249+
platform_mapping: {
250+
let mut map = HashMap::new();
251+
map.insert("darwin_amd64".to_string(), "x86_64-macos.tar.xz".to_string());
252+
map.insert("darwin_arm64".to_string(), "aarch64-macos.tar.xz".to_string());
253+
map.insert("linux_amd64".to_string(), "x86_64-linux.tar.xz".to_string());
254+
map.insert("linux_arm64".to_string(), "aarch64-linux.tar.xz".to_string());
255+
map.insert("windows_amd64".to_string(), "x86_64-windows.zip".to_string());
256+
map
257+
},
258+
},
259+
tag_prefix: Some("v".to_string()),
260+
},
261+
);
262+
263+
// wkg configuration
264+
tools.insert(
265+
"wkg".to_string(),
266+
ToolConfigEntry {
267+
github_repo: "bytecodealliance/wasm-pkg-tools".to_string(),
268+
platforms: vec![
269+
"darwin_amd64".to_string(),
270+
"darwin_arm64".to_string(),
271+
"linux_amd64".to_string(),
272+
"linux_arm64".to_string(),
273+
"windows_amd64".to_string(),
274+
],
275+
url_pattern: UrlPattern::Custom {
276+
pattern: "https://github.com/bytecodealliance/wasm-pkg-tools/releases/download/v{version}/wkg-{platform}".to_string(),
277+
platform_mapping: {
278+
let mut map = HashMap::new();
279+
map.insert("darwin_amd64".to_string(), "x86_64-apple-darwin".to_string());
280+
map.insert("darwin_arm64".to_string(), "aarch64-apple-darwin".to_string());
281+
map.insert("linux_amd64".to_string(), "x86_64-unknown-linux-gnu".to_string());
282+
map.insert("linux_arm64".to_string(), "aarch64-unknown-linux-gnu".to_string());
283+
map.insert("windows_amd64".to_string(), "x86_64-pc-windows-gnu".to_string());
284+
map
285+
},
286+
},
287+
tag_prefix: Some("v".to_string()),
288+
},
289+
);
290+
291+
// tinygo configuration
292+
tools.insert(
293+
"tinygo".to_string(),
294+
ToolConfigEntry {
295+
github_repo: "tinygo-org/tinygo".to_string(),
296+
platforms: vec![
297+
"darwin_amd64".to_string(),
298+
"darwin_arm64".to_string(),
299+
"linux_amd64".to_string(),
300+
"linux_arm64".to_string(),
301+
"windows_amd64".to_string(),
302+
],
303+
url_pattern: UrlPattern::Custom {
304+
pattern: "https://github.com/tinygo-org/tinygo/releases/download/v{version}/tinygo{version}.{platform}.tar.gz".to_string(),
305+
platform_mapping: {
306+
let mut map = HashMap::new();
307+
map.insert("darwin_amd64".to_string(), ".darwin-amd64".to_string());
308+
map.insert("darwin_arm64".to_string(), ".darwin-arm64".to_string());
309+
map.insert("linux_amd64".to_string(), ".linux-amd64".to_string());
310+
map.insert("linux_arm64".to_string(), ".linux-arm64".to_string());
311+
map.insert("windows_amd64".to_string(), ".windows-amd64".to_string());
312+
map
313+
},
314+
},
315+
tag_prefix: Some("v".to_string()),
316+
},
317+
);
318+
207319
Self { tools }
208320
}
209321

0 commit comments

Comments
 (0)