From 9a99ca6146c72dfc97ecbca3e79072237d238b33 Mon Sep 17 00:00:00 2001 From: Carsten Munk Date: Tue, 22 Oct 2024 09:07:21 +0200 Subject: [PATCH] fix: work around assert-rolling-template issue Signed-off-by: Carsten Munk --- .changeset/pretty-terms-beam.md | 5 +++++ packages/sdk/create_machine_snapshot | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/pretty-terms-beam.md diff --git a/.changeset/pretty-terms-beam.md b/.changeset/pretty-terms-beam.md new file mode 100644 index 00000000..b003714f --- /dev/null +++ b/.changeset/pretty-terms-beam.md @@ -0,0 +1,5 @@ +--- +"@cartesi/sdk": patch +--- + +fix: work around assert-rolling-template issue diff --git a/packages/sdk/create_machine_snapshot b/packages/sdk/create_machine_snapshot index 11e3a7d4..7501329a 100755 --- a/packages/sdk/create_machine_snapshot +++ b/packages/sdk/create_machine_snapshot @@ -1,5 +1,5 @@ #!/bin/bash -set -e +#set -e # Define function to display usage usage() { @@ -63,6 +63,8 @@ while true ; do exit 1 ;; esac done +# XXX hotfix to fix issue with assert-rolling-template +sed -i "s/cmd == cartesi.machine.HTIF_YIELD_MANUAL/cmd == cartesi.machine.HTIF_YIELD_CMD_MANUAL/g" /usr/share/lua/5.4/cartesi-machine.lua # Construct the command line for cartesi-machine cmd=("cartesi-machine")