From 22939589cd40c48fc75c0a8ccb47297f29a7360b Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 2 Jan 2026 01:29:40 +0000 Subject: [PATCH] Fix getpid import to match stdlib export name The stdlib/process module exports get_pid (with underscore) but installer.hml and github.hml were importing getpid (without underscore). --- src/github.hml | 4 ++-- src/installer.hml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/github.hml b/src/github.hml index b882dbb..69670ed 100644 --- a/src/github.hml +++ b/src/github.hml @@ -5,7 +5,7 @@ import { parse } from "@stdlib/json"; import * as env from "@stdlib/env"; import { exists, read_file, write_file } from "@stdlib/fs"; import { sleep, now } from "@stdlib/time"; -import { getpid } from "@stdlib/process"; +import { get_pid } from "@stdlib/process"; // Retry configuration let MAX_RETRIES = 4; @@ -13,7 +13,7 @@ let INITIAL_BACKOFF_MS = 1000; // 1 second // Generate a unique suffix for temp files using PID and timestamp fn unique_suffix(): string { - let pid = getpid(); + let pid = get_pid(); let ts = now(); return "" + pid + "_" + ts; } diff --git a/src/installer.hml b/src/installer.hml index bae00c7..dda57fd 100644 --- a/src/installer.hml +++ b/src/installer.hml @@ -2,7 +2,7 @@ import { exists, read_file, write_file, make_dir, remove_dir, list_dir, is_dir } from "@stdlib/fs"; import { sha256 } from "@stdlib/hash"; -import { fork, waitpid, exec, getpid } from "@stdlib/process"; +import { fork, waitpid, exec, get_pid } from "@stdlib/process"; import { exit } from "@stdlib/env"; import { now } from "@stdlib/time"; @@ -15,7 +15,7 @@ let MAX_PARALLEL_DOWNLOADS = 4; // Generate a unique suffix for temp directories using PID and timestamp fn unique_suffix(): string { - let pid = getpid(); + let pid = get_pid(); let ts = now(); return "" + pid + "_" + ts; }