Skip to content

Commit e4c9cf3

Browse files
chore: pin transitive dependencies and add update script
1 parent c05092b commit e4c9cf3

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ serial_test = "3.2.0"
4343
mockito = "1.7.0"
4444
criterion = "0.5.1"
4545

46+
[patch.crates-io]
47+
curve25519-dalek = { version = "=3.2.1" }
48+
solana-feature-set = { version = "2.2.4" }
49+
4650
[features]
4751
default = []
4852
remote-wallet = ["solana-remote-wallet"]

update-transitive-dependencies.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Updates specific transitive dependencies to the versions we want
4+
#
5+
6+
set -e
7+
8+
echo "Updating transitive dependencies..."
9+
10+
# Add the dependencies to Cargo.toml
11+
echo "Adding dependencies to Cargo.toml..."
12+
cat >> Cargo.toml << EOF
13+
14+
# Temporary dependencies to force specific versions of transitive dependencies
15+
# These will be removed after cargo update
16+
curve25519-dalek = "3.2.1"
17+
solana-feature-set = "2.2.4"
18+
EOF
19+
20+
# Update the dependencies
21+
echo "Running cargo update..."
22+
cargo update
23+
24+
# Remove the temporary dependencies from Cargo.toml
25+
echo "Removing temporary dependencies from Cargo.toml..."
26+
sed -i '/# Temporary dependencies/,/solana-feature-set/d' Cargo.toml
27+
28+
echo "Done!"

0 commit comments

Comments
 (0)