lock gomuks src to a commit

This commit is contained in:
Henry Hiles 2026-03-23 23:04:59 -04:00
commit cda971a335
No known key found for this signature in database
2 changed files with 17 additions and 3 deletions

1
gomuks.lock Normal file
View file

@ -0,0 +1 @@
daa0ba028e7d89ba9fc7580fc8099348e6145cb3

View file

@ -12,9 +12,7 @@ void main(List<String> 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<String> 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"];