From cda971a3350ca734b952156b60442c07afdc3e20 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Mon, 23 Mar 2026 23:04:59 -0400 Subject: [PATCH] lock gomuks src to a commit --- gomuks.lock | 1 + scripts/generate.dart | 19 ++++++++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 gomuks.lock diff --git a/gomuks.lock b/gomuks.lock new file mode 100644 index 0000000..fbd6ca7 --- /dev/null +++ b/gomuks.lock @@ -0,0 +1 @@ +daa0ba028e7d89ba9fc7580fc8099348e6145cb3 \ No newline at end of file diff --git a/scripts/generate.dart b/scripts/generate.dart index b240d98..b6b5453 100644 --- a/scripts/generate.dart +++ b/scripts/generate.dart @@ -12,9 +12,7 @@ void main(List args) async { print("Cloning Gomuks repository..."); final cloneResult = await Process.run("git", [ "clone", - "--depth", - "1", - "https://mau.dev/gomuks/gomuks", + "https://github.com/zachatrocity/gomuks", repoDir.path, ]); @@ -24,6 +22,21 @@ void main(List args) async { ); } + final commit = await File.fromUri( + Platform.script.resolve("../gomuks.lock"), + ).readAsString(); + + final checkoutResult = await Process.run("git", [ + "checkout", + commit, + ], workingDirectory: repoDir.path); + + if (checkoutResult.exitCode != 0) { + throw Exception( + "Failed to check out locked commit: \n${checkoutResult.stderr}", + ); + } + print("Generating FFI Bindings..."); final libclangPath = Platform.environment["LIBCLANG_PATH"];