Skip to content

Commit

Permalink
chore: add a script to bump all fuel maintained dependencies (#6684)
Browse files Browse the repository at this point in the history
## Description

Adds a bash script which iterates over all fuel owned/maintained crates
we depend on and only runs cargo update for them.

This is especially useful for incorporating minor bumps which happens
much more often.

Co-authored-by: Joshua Batty <[email protected]>
  • Loading branch information
kayagokalp and JoshuaBatty authored Nov 4, 2024
1 parent d7dd104 commit 0f82e5c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions update_fuel_dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash

# Run this script to only bump fuel maintained dependencies.
#
# We currently pin dependencies using "X.Y" in the root Cargo.toml file.
# Since `cargo build` does not check for minor version bumps at each invocation
# it is hard to move between new versions, especially for minor bumps which
# happens much often. Use this script to keep every fuel owned dependency up to
# date.

# Define the list of fuel maintained crates
crates=(
"fuel-abi-types"
"fuel-core-client"
"fuel-core-types"
"fuels"
"fuels-core"
"fuels-accounts"
"fuel-asm"
"fuel-crypto"
"fuel-types"
"fuel-tx"
"fuel-vm"
"forc-wallet"
)

# Run `cargo update -p <crate_name>` for each fuel owned crate.
for crate in "${crates[@]}"; do
echo "Updating package: $crate"
cargo update -p "$crate"
done

0 comments on commit 0f82e5c

Please sign in to comment.