Files
rustytorch/scripts/migration/fix-dependencies.sh
T
2026-03-04 00:08:42 +00:00

24 lines
685 B
Bash
Executable File

#!/bin/bash
# Remove non-existent or problematic dependencies
echo "Fixing non-existent dependencies..."
# List of known non-existent crates to remove
NON_EXISTENT=(
"byzantine-generals"
"medical-imaging-toolkit"
"approx-float"
)
for crate in "${NON_EXISTENT[@]}"; do
echo "Removing references to: $crate"
find crates -name "Cargo.toml" -exec sed -i "/$crate/d" {} \;
done
# Fix features that depend on removed crates
echo "Fixing feature dependencies..."
find crates -name "Cargo.toml" -exec sed -i 's/, "medical-imaging-toolkit"//g' {} \;
find crates -name "Cargo.toml" -exec sed -i 's/"medical-imaging-toolkit", //g' {} \;
echo "Dependency fixes complete!"