Skip to content

Commit 5faf119

Browse files
authored
Merge pull request #2012 from lucasbalieiro/fix-patch-IT
update `run-integration-tests.sh` scripts to patch the sources from crates.io
2 parents 91ca49e + 5d52967 commit 5faf119

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

scripts/run-integration-tests.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,22 @@ fi
3838
cd "$INTEGRATION_TESTS_DIR"
3939

4040
# # Add patch section to override all git dependencies with local paths
41-
echo "🔧 Adding patch section to override git dependencies..."
41+
echo "🔧 Adding patch section to override dependencies..."
4242

4343
# Remove any existing patch section first
4444
if [[ "$OSTYPE" == "darwin"* ]]; then
45-
sed -i '' '/^# Override git dependencies with local paths/,/^$/d' Cargo.toml
45+
sed -i '' '/^# Override dependencies with local paths/,/^$/d' Cargo.toml
4646
else
47-
sed -i '/^# Override git dependencies with local paths/,/^$/d' Cargo.toml
47+
sed -i '/^# Override dependencies with local paths/,/^$/d' Cargo.toml
4848
fi
4949

5050

5151
# Add the patch section at the end of the file
5252
cat >> Cargo.toml << 'EOF'
5353
54-
# Override git dependencies with local paths to avoid version conflicts
55-
# TODO: will need to replace to patch.crates-io as soons as they are available and updated on the sv2-apps repo
56-
[patch."https://github.com/stratum-mining/stratum"]
57-
stratum-core = {path = "../../../stratum-core"}
54+
# Override dependencies with local paths
55+
[patch.crates-io]
56+
stratum-core = {path = "../../../stratum-core"}
5857
EOF
5958

6059
echo "✅ Updated Cargo.toml to use local dependencies"

0 commit comments

Comments
 (0)