Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase depth dependency analysis level #109

Merged
merged 1 commit into from
Feb 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .github/workflows/reusable_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
BUILD_DEVICE_NAME="$(echo ${{ matrix.device }} | sed 's/nanosp/nanosplus/')" && \
cd ${{ needs.call_get_app_metadata.outputs.build_directory }}
# Update the Rust SDK crates
all_crates=$(cargo +$RUST_NIGHTLY tree --depth 1 --prefix none | awk '{print $1}' | sort -u)
all_crates=$(cargo +$RUST_NIGHTLY tree --depth 2 --prefix none | awk '{print $1}' | sort -u)
for crate in "ledger_secure_sdk_sys" "ledger_device_sdk" "include_gif"; do
if echo "$all_crates" | grep -q "^$crate$"; then
cargo +$RUST_NIGHTLY update $crate
Expand Down
2 changes: 1 addition & 1 deletion scripts/check_rust_sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fi

cd "$1"
# Get the list of dependencies and filter the Rust SDK crates
all_crates=$(cargo +"${RUST_NIGHTLY}" tree --depth 1 --prefix none | awk '{print $1}' | sort -u)
all_crates=$(cargo +"${RUST_NIGHTLY}" tree --depth 2 --prefix none | awk '{print $1}' | sort -u)
for crate in "ledger_secure_sdk_sys" "ledger_device_sdk" "include_gif"; do
if echo "$all_crates" | grep -q "^$crate$"; then
curr_version=$(cargo +"${RUST_NIGHTLY}" tree -p $crate | grep -oE "$crate v[0-9]+\.[0-9]+\.[0-9]+" | awk '{print $2}' | sed 's/^v//')
Expand Down
Loading