File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 7575 run : |
7676 # TODO: Update this patch logic to use `cargo add` once this issue is resolved: https://github.com/rust-lang/cargo/issues/16101
7777 crates=$(cd ${{ github.workspace }}/rs-soroban-sdk && cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.publish != []) | .name')
78- find . -name Cargo.toml | while read file; do
78+
79+ # Find Cargo.toml files to patch
80+ local_files=$(find . -name Cargo.toml)
81+ workspace_root=$(cargo metadata --format-version 1 --no-deps | jq -r '.workspace_root')
82+ files=$(echo "$local_files"; echo "$workspace_root/Cargo.toml")
83+
84+ # Patch local files and workspace root (sort -u to deduplicate)
85+ echo "$files" | sort -u | while read file; do
7986 echo Patching "$file" ...
8087 dir=$(dirname "$file")
8188 for crate in $crates; do
You can’t perform that action at this time.
0 commit comments