summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNadrieril2024-05-03 11:32:44 +0200
committerNadrieril2024-05-14 15:01:39 +0200
commitf2fa29e5ef5c8c7d7375e4c8a37dbba1012fb95c (patch)
tree78bab9b0c1abb65ade8751a8cb39cd96bb55bed5 /scripts
parent44b31973eb5a8c27e5620081669488e3b5899638 (diff)
`./charon-pin` stores the current charon commit
It is kept up-to-date in CI
Diffstat (limited to 'scripts')
-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