Skip to content

Commit

Permalink
CI: Remove memo program from downstream job (#3804)
Browse files Browse the repository at this point in the history
#### Problem

The SPL programs are in the process of being moved to program-specific
repos. Memo now exists in https://github.com/solana-program/memo, and
there's a PR to remove it from SPL at
solana-labs/solana-program-library#7535. If we
merge that, however, the downstream jobs will immediately fail.

#### Summary of changes

Remove all references to the memo program in downstream CI.
  • Loading branch information
joncinque authored Nov 27, 2024
1 parent 8d697eb commit 4bdea46
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/downstream-project-spl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ jobs:
- [token-upgrade/program]
- [feature-proposal/program]
- [governance/addin-mock/program, governance/program]
- [memo/program]
- [name-service/program]
- [stake-pool/program]
- [single-pool/program]
Expand Down
1 change: 0 additions & 1 deletion .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ pull_request_rules:
- status-success=cargo-test-sbf (token-upgrade/program)
- status-success=cargo-test-sbf (feature-proposal/program)
- status-success=cargo-test-sbf (governance/addin-mock/program, governance/program)
- status-success=cargo-test-sbf (memo/program)
- status-success=cargo-test-sbf (name-service/program)
- status-success=cargo-test-sbf (stake-pool/program)
- status-success=cargo-test-sbf (single-pool/program)
Expand Down
1 change: 0 additions & 1 deletion ci/downstream-projects/func-spl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ spl() {
feature-proposal/program
governance/addin-mock/program
governance/program
memo/program
name-service/program
stake-pool/program
single-pool/program
Expand Down
5 changes: 0 additions & 5 deletions scripts/patch-spl-crates-for-anchor.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
spl_associated_token_account_version=
spl_memo_version=
spl_pod_version=
spl_token_version=
spl_token_2022_version=
Expand All @@ -12,7 +11,6 @@ spl_type_length_value_version=
get_spl_versions() {
declare spl_dir="$1"
spl_associated_token_account_version=$(readCargoVariable version "$spl_dir/associated-token-account/program/Cargo.toml")
spl_memo_version=$(readCargoVariable version "$spl_dir/memo/program/Cargo.toml")
spl_pod_version=$(readCargoVariable version "$spl_dir/libraries/pod/Cargo.toml")
spl_token_version=$(readCargoVariable version "$spl_dir/token/program/Cargo.toml")
spl_token_2022_version=$(readCargoVariable version "$spl_dir/token/program-2022/Cargo.toml"| head -c1) # only use the major version for convenience
Expand All @@ -38,8 +36,6 @@ update_spl_dependencies() {

sed -i -e "s#\(spl-associated-token-account = \"\)[^\"]*\(\"\)#\1$spl_associated_token_account_version\2#g" "${tomls[@]}" || return $?
sed -i -e "s#\(spl-associated-token-account = { version = \"\)[^\"]*\(\"\)#\1$spl_associated_token_account_version\2#g" "${tomls[@]}" || return $?
sed -i -e "s#\(spl-memo = \"\)[^\"]*\(\"\)#\1$spl_memo_version\2#g" "${tomls[@]}" || return $?
sed -i -e "s#\(spl-memo = { version = \"\)[^\"]*\(\"\)#\1$spl_memo_version\2#g" "${tomls[@]}" || return $?
sed -i -e "s#\(spl-pod = \"\)[^\"]*\(\"\)#\1$spl_pod_version\2#g" "${tomls[@]}" || return $?
sed -i -e "s#\(spl-pod = { version = \"\)[^\"]*\(\"\)#\1$spl_pod_version\2#g" "${tomls[@]}" || return $?
sed -i -e "s#\(spl-token = \"\)[^\"]*\(\"\)#\1$spl_token_version\2#g" "${tomls[@]}" || return $?
Expand Down Expand Up @@ -67,7 +63,6 @@ patch_crates_io() {
declare spl_dir="$2"
cat >> "$Cargo_toml" <<EOF
spl-associated-token-account = { path = "$spl_dir/associated-token-account/program" }
spl-memo = { path = "$spl_dir/memo/program" }
spl-pod = { path = "$spl_dir/libraries/pod" }
spl-token = { path = "$spl_dir/token/program" }
# Avoid patching spl-token-2022 to avoid forcing anchor to use 4.0.1, which
Expand Down

0 comments on commit 4bdea46

Please sign in to comment.