From 20baf3dc2f5148f5601f9ab45f54661471dcbc28 Mon Sep 17 00:00:00 2001 From: Carsten Munk Date: Tue, 22 Oct 2024 15:29:37 +0200 Subject: [PATCH] fix: workaround assert rolling template (#108) fix: work around assert-rolling-template issue Signed-off-by: Carsten Munk --- .changeset/pretty-terms-beam.md | 5 +++++ packages/sdk/create_machine_snapshot | 2 ++ 2 files changed, 7 insertions(+) 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..eca7b5a4 100755 --- a/packages/sdk/create_machine_snapshot +++ b/packages/sdk/create_machine_snapshot @@ -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")