Skip to content

Commit e139c60

Browse files
committed
Use latest master as fallback instead of pinned commit
When bko-bulletin-para-support branch doesn't exist, now falls back to origin/master to get the latest stable polkadot-sdk instead of an old pinned commit.
1 parent 4d74596 commit e139c60

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/justfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,16 @@ setup-westend-prerequisites:
4747
echo " Fetching latest changes from polkadot-sdk..."
4848
git fetch origin
4949

50-
# Try to check out the branch, fall back to commit hash if branch doesn't exist
50+
# Try to check out the branch, fall back to latest master if branch doesn't exist
5151
BRANCH_NAME="bko-bulletin-para-support"
52-
FALLBACK_COMMIT="b2bcb74b13f1a1e082f701e3e05ce1be44d16790" # From Cargo.toml
5352

5453
if git ls-remote --heads origin "$BRANCH_NAME" | grep -q "$BRANCH_NAME"; then
5554
echo " Checking out branch $BRANCH_NAME..."
5655
git reset --hard origin/$BRANCH_NAME
5756
else
58-
echo " ⚠ Branch $BRANCH_NAME not found, using commit $FALLBACK_COMMIT instead..."
57+
echo " ⚠ Branch $BRANCH_NAME not found, using latest master instead..."
5958
echo " TODO: later, before merging, switch to the \`bko-bulletin-support\` https://github.com/paritytech/polkadot-sdk/pull/10662 (not now)"
60-
git reset --hard $FALLBACK_COMMIT
59+
git reset --hard origin/master
6160
fi
6261

6362
# Build polkadot binary

0 commit comments

Comments
 (0)