Skip to content

Commit

Permalink
add ability to set source repo for runtime overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
noandrea committed Nov 27, 2023
1 parent 55986cb commit b00f51c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/import-tracing-runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

SPEC_VERSION=$1
GIT_REF=${2:-"runtime-$SPEC_VERSION"}
GIT_REPO=${3:-"https://github.com/moonbeam-foundation/moonbeam"}

if [[ "$GIT_REF" == "runtime-$SPEC_VERSION" ]]; then
GIT_DEP_REF="--rev $GIT_REF"
Expand All @@ -18,7 +19,7 @@ else
echo "Get moonbeam snapshot..."
rm -rf tmp
mkdir tmp
git clone https://github.com/moonbeam-foundation/moonbeam --depth 1 -b $GIT_REF $MOONBEAM_PATH
git clone $GIT_REPO --depth 1 -b $GIT_REF $MOONBEAM_PATH
fi

# Copy relevant files
Expand All @@ -35,7 +36,7 @@ rm -rf tracing/$SPEC_VERSION/runtime/relay-encoder

echo "Run migration script"
cd scripts
cargo run -q --bin migrate-imported -- --dir ../tracing/$SPEC_VERSION --repo "https://github.com/moonbeam-foundation/moonbeam" $GIT_DEP_REF
cargo run -q --bin migrate-imported -- --dir ../tracing/$SPEC_VERSION --repo "$GIT_REPO" $GIT_DEP_REF
cd ..

echo "Running ./scripts/update-tracing-runtime-lock.sh $SPEC_VERSION ..."
Expand Down

0 comments on commit b00f51c

Please sign in to comment.