Skip to content

Commit

Permalink
Use the latest Sui tag (#3)
Browse files Browse the repository at this point in the history
Because Suibase does not support pagination of Github releases, any pinned Sui version of testnet soon results in an error. We use the latest Sui tag instead to avoid this.
  • Loading branch information
porkbrain authored Oct 29, 2024
1 parent 6a20507 commit 2d10a4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
3 changes: 0 additions & 3 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ compatible (from the Sui Move point of view) chain, based on [`Suibase`][suibase

You can download and install Suibase with `just suibase-setup`.

> [!NOTE]
> Our setup script pins localnet to a particular version in `~/suibase/workdirs/localnet/suibase.yaml`
### `PATH`

Make sure `~/.local/bin` is in your `PATH`. Suibase requires this, as it installs its
Expand Down
12 changes: 6 additions & 6 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
python_version := "3.10"
llama_version := "llama3.2:1b"
sui_tag := "testnet-v1.28.3"

[private]
default:
Expand Down Expand Up @@ -97,12 +96,13 @@ suibase-setup:
cd ~/suibase
./install

# Because Suibase does not support pagination of Github Sui's releases,
# we just use the latest release.
# While we could use 'force_tag' in the Suibase config, with the cadence
# of Sui releases this would break every now and then.
# Instead, we rely on the fact that the features we use should be stable
# and we don't _expect_ breaking changes.
localnet create
# Pin Sui version to minimum supported by Suibase.
# This ought to match the talus package version as close as possible.
config=~/suibase/workdirs/localnet/suibase.yaml
echo '' >> $config
echo 'force_tag: "{{ sui_tag }}"' >> $config
localnet update
else
echo ~/suibase exists
Expand Down

0 comments on commit 2d10a4c

Please sign in to comment.