Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/test-with-soroban-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,14 @@ jobs:
run: |
# TODO: Update this patch logic to use `cargo add` once this issue is resolved: https://github.com/rust-lang/cargo/issues/16101
crates=$(cd ${{ github.workspace }}/rs-soroban-sdk && cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.publish != []) | .name')
find . -name Cargo.toml | while read file; do

# Find Cargo.toml files to patch
local_files=$(find . -name Cargo.toml)
workspace_root=$(cargo metadata --format-version 1 --no-deps | jq -r '.workspace_root')
files=$(echo "$local_files"; echo "$workspace_root/Cargo.toml")

# Patch local files and workspace root (sort -u to deduplicate)
echo "$files" | sort -u | while read file; do
echo Patching "$file" ...
dir=$(dirname "$file")
for crate in $crates; do
Expand Down
Loading