summaryrefslogtreecommitdiff
path: root/scripts/update-charon-pin.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/update-charon-pin.sh')
-rwxr-xr-xscripts/update-charon-pin.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/update-charon-pin.sh b/scripts/update-charon-pin.sh
new file mode 100755
index 00000000..418602b8
--- /dev/null
+++ b/scripts/update-charon-pin.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+if ! which jq 2> /dev/null 1>&2; then
+ echo 'Error: command `jq` not found.'
+ exit 1
+fi
+echo '# This is the commit from https://github.com/AeneasVerif/charon that should be used with this version of aeneas.' > ./charon-pin
+jq -r .nodes.charon.locked.rev flake.lock >> ./charon-pin