Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit dc24cee

Browse files
authored
ci: Only copy monorepo toolchain file if it exists (#4067)
1 parent eb7d326 commit dc24cee

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

patch.crates-io.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ solana_dir=$(cd "$solana_dir" && pwd)
2424
cd "$(dirname "$0")"
2525

2626
source "$solana_dir"/scripts/read-cargo-variable.sh
27-
cp "$solana_dir"/rust-toolchain.toml .
27+
28+
# The toolchain file only exists in version >= 1.15
29+
toolchain_file="$solana_dir"/rust-toolchain.toml
30+
if [[ -f "$toolchain_file" ]]; then
31+
cp "$toolchain_file" .
32+
fi
2833

2934
# get version from Cargo.toml first. if it is empty, get it from other places.
3035
solana_ver="$(readCargoVariable version "$solana_dir"/Cargo.toml)"

0 commit comments

Comments
 (0)