Skip to content

Commit

Permalink
chore: use dependencies-patch crates to do patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Azure-stars committed May 19, 2024
1 parent be84e58 commit 540754d
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 286 deletions.
7 changes: 3 additions & 4 deletions scripts/test/external_test.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# The directory of the main repo
WORK_DIR=$1

PATCH_TOOL_DIR=$WORK_DIR/tools/patch_tool

# The package which needs to be patched
# It always be the package which triggers the test
PATCH_PACKAGE=$2
Expand All @@ -18,5 +16,6 @@ mkdir .github/workflows/actions
mv $WORK_DIR/.github/workflows/actions/* .github/workflows/actions

# To do the patch for current commit
cd $PATCH_TOOL_DIR
cargo run -- ../../ $PATCH_PACKAGE $PATCH_TARGET_URL $PATCH_COMMIT_HASH
cargo install dependencies-patch
# cargo run -- ../../ $PATCH_PACKAGE $PATCH_TARGET_URL $PATCH_COMMIT_HASH
dependencies-patch -c $WORK_DIR -n $PATCH_PACKAGE --git-repo $PATCH_TARGET_URL --commit $PATCH_COMMIT_HASH
1 change: 0 additions & 1 deletion tools/patch_tool/.gitignore

This file was deleted.

153 changes: 0 additions & 153 deletions tools/patch_tool/Cargo.lock

This file was deleted.

14 changes: 0 additions & 14 deletions tools/patch_tool/Cargo.toml

This file was deleted.

16 changes: 0 additions & 16 deletions tools/patch_tool/src/main.rs

This file was deleted.

98 changes: 0 additions & 98 deletions tools/patch_tool/src/patch.rs

This file was deleted.

0 comments on commit 540754d

Please sign in to comment.