Skip to content

Commit

Permalink
Add --force-tools-install to command
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Oct 30, 2024
1 parent 27fdb8e commit d18a87d
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-single-pool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
- name: Build dependent programs
run: |
cargo build-sbf --tools-version v1.43 --manifest-path=single-pool/program/Cargo.toml
cargo build-sbf --tools-version v1.43 --force-tools-install --manifest-path=single-pool/program/Cargo.toml
- name: Build and test
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-token-swap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:

- name: Build production version
run: |
cargo +"$RUST_STABLE" build-sbf --tools-version v1.43 \
cargo +"$RUST_STABLE" build-sbf --tools-version v1.43 --force-tools-install \
--manifest-path=token-swap/program/Cargo.toml \
--features production \
--sbf-out-dir target/deploy-production
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-token-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
- name: Build dependent programs
run: |
cargo build-sbf --tools-version v1.43 --manifest-path ./token-upgrade/program/Cargo.toml
cargo build-sbf --tools-version v1.43 --force-tools-install --manifest-path ./token-upgrade/program/Cargo.toml
- name: Run CLI tests
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull-request-token.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ jobs:

- name: Set env vars
run: |
echo "RUST_STABLE_VERSION=1.78.0" >> $GITHUB_ENV
echo "RUST_STABLE_VERSION=1.81.0" >> $GITHUB_ENV
source ci/rust-version.sh
echo "RUST_STABLE=$rust_stable" >> $GITHUB_ENV
source ci/solana-version.sh
Expand All @@ -230,8 +230,8 @@ jobs:
- name: Build and test token-2022
run: |
cargo build-sbf --tools-version v1.43 --manifest-path token/program-2022/Cargo.toml
cargo build-sbf --tools-version v1.43 --manifest-path instruction-padding/program/Cargo.toml
cargo build-sbf --tools-version v1.43 --force-tools-install --manifest-path token/program-2022/Cargo.toml
cargo build-sbf --tools-version v1.43 --force-tools-install --manifest-path instruction-padding/program/Cargo.toml
./ci/cargo-test-sbf.sh token/program-2022-test
js-test:
Expand Down
2 changes: 1 addition & 1 deletion account-compression/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"scripts": {
"build": "rm -rf dist/ && tsc -p tsconfig.json",
"build:program": "cargo build-sbf --tools-version v1.43 --manifest-path=../programs/account-compression/Cargo.toml && cargo build-sbf --manifest-path=../programs/noop/Cargo.toml",
"build:program": "cargo build-sbf --tools-version v1.43 --force-tools-install --manifest-path=../programs/account-compression/Cargo.toml && cargo build-sbf --manifest-path=../programs/noop/Cargo.toml",
"lint": "set -ex; eslint . --ext .js,.ts",
"lint:fix": "eslint . --fix --ext .js,.ts",
"docs": "rm -rf docs/ && typedoc --out docs",
Expand Down
6 changes: 3 additions & 3 deletions ci/cargo-test-sbf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if [[ -r $run_dir/Cargo.toml ]]; then
set -x
cd $run_dir
# Remove tools version specification once v2.1 cargo-build-sbf is available
cargo +"$rust_stable" test-sbf --tools-version v1.43 -- --nocapture
cargo +"$rust_stable" test-sbf --tools-version v1.43 --force-tools-install -- --nocapture
exit 0
fi

Expand All @@ -45,7 +45,7 @@ for program in $run_dir/program{,-*}; do
set -x
cd $program
# Remove tools version specification once v2.1 cargo-build-sbf is available
cargo +"$rust_stable" test-sbf --tools-version v1.43 -- --nocapture
cargo +"$rust_stable" test-sbf --tools-version v1.43 --force-tools-install -- --nocapture
)
fi
done
Expand All @@ -56,6 +56,6 @@ if [[ -n $run_all ]]; then
for directory in $(ls -d $run_dir/*/); do
cd $directory
# Remove tools version specification once v2.1 cargo-build-sbf is available
cargo +"$rust_stable" test-sbf --tools-version v1.43 -- --nocapture
cargo +"$rust_stable" test-sbf --tools-version v1.43 --force-tools-install -- --nocapture
done
fi
2 changes: 1 addition & 1 deletion name-service/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"scripts": {
"build": "tsc --build --verbose tsconfig.all.json",
"build:program": "cargo build-sbf --tools-version v1.43 --manifest-path=../program/Cargo.toml",
"build:program": "cargo build-sbf --tools-version v1.43 --force-tools-install --manifest-path=../program/Cargo.toml",
"prepublish": "tsc",
"lint": "eslint --max-warnings 0 'src/*.ts'",
"lint:fix": "eslint 'src/*.ts' --fix",
Expand Down
2 changes: 1 addition & 1 deletion single-pool/js/packages/classic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"scripts": {
"clean": "rm -rf dist/*",
"build": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && ./ts-fixup.sh",
"build:program": "cargo build-sbf --tools-version v1.43 --manifest-path=../../../program/Cargo.toml",
"build:program": "cargo build-sbf --tools-version v1.43 --force-tools-install --manifest-path=../../../program/Cargo.toml",
"lint": "eslint --max-warnings 0 .",
"lint:fix": "eslint . --fix",
"test": "sed -i '1s/.*/{ \"type\": \"module\",/' package.json && NODE_OPTIONS='--loader=tsx' ava ; ret=$?; sed -i '1s/.*/{/' package.json && exit $ret"
Expand Down
2 changes: 1 addition & 1 deletion stake-pool/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "SPL Stake Pool Program JS API",
"scripts": {
"build": "tsc && cross-env NODE_ENV=production rollup -c",
"build:program": "cargo build-sbf --tools-version v1.43 --manifest-path=../program/Cargo.toml",
"build:program": "cargo build-sbf --tools-version v1.43 --force-tools-install --manifest-path=../program/Cargo.toml",
"lint": "eslint --max-warnings 0 .",
"lint:fix": "eslint . --fix",
"test": "jest",
Expand Down
2 changes: 1 addition & 1 deletion token-swap/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"clean": "rm -rf lib/*",
"build": "tsc --build --verbose tsconfig.all.json",
"postbuild": "echo '{\"type\":\"commonjs\"}' > lib/cjs/package.json && echo '{\"type\":\"module\"}' > lib/esm/package.json",
"build:program": "cargo build-sbf --tools-version v1.43 --manifest-path=../program/Cargo.toml",
"build:program": "cargo build-sbf --tools-version v1.43 --force-tools-install --manifest-path=../program/Cargo.toml",
"test:js": "mocha test",
"test": "start-server-and-test 'solana-test-validator --bpf-program SwapsVeCiPHMUAtzQWZw7RjsKjgCjhwU55QGu4U1Szw ../../target/deploy/spl_token_swap.so --reset --quiet' http://127.0.0.1:8899/health test:js",
"lint": "eslint --max-warnings 0 .",
Expand Down
4 changes: 2 additions & 2 deletions token/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"clean": "shx rm -rf lib **/*.tsbuildinfo || true",
"build": "tsc --build --verbose tsconfig.all.json",
"postbuild": "shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json",
"build:program": "cargo build-sbf --tools-version v1.43 --manifest-path=../program/Cargo.toml && cargo build-sbf --tools-version v1.43 --manifest-path=../program-2022/Cargo.toml && cargo build-sbf --tools-version v1.43 --manifest-path=../../associated-token-account/program/Cargo.toml && cargo build-sbf --tools-version v1.43 --no-default-features --manifest-path=../transfer-hook/example/Cargo.toml",
"build:program": "cargo build-sbf --tools-version v1.43 --force-tools-install --manifest-path=../program/Cargo.toml && cargo build-sbf --tools-version v1.43 --force-tools-install --manifest-path=../program-2022/Cargo.toml && cargo build-sbf --tools-version v1.43 --force-tools-install --manifest-path=../../associated-token-account/program/Cargo.toml && cargo build-sbf --tools-version v1.43 --force-tools-install --no-default-features --manifest-path=../transfer-hook/example/Cargo.toml",
"watch": "tsc --build --verbose --watch tsconfig.all.json",
"release": "npm run clean && npm run build",
"lint": "eslint --max-warnings 0 .",
Expand All @@ -44,7 +44,7 @@
"test:e2e-built": "start-server-and-test 'solana-test-validator --bpf-program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA ../../target/deploy/spl_token.so --reset --quiet' http://127.0.0.1:8899/health 'mocha test/e2e'",
"test:e2e-2022": "TEST_PROGRAM_ID=TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb start-server-and-test 'solana-test-validator --bpf-program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL ../../target/deploy/spl_associated_token_account.so --bpf-program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb ../../target/deploy/spl_token_2022.so --bpf-program TokenHookExampLe8smaVNrxTBezWTRbEwxwb1Zykrb ../../target/deploy/spl_transfer_hook_example.so --reset --quiet' http://127.0.0.1:8899/health 'mocha test/e2e*'",
"test:e2e-native": "start-server-and-test 'solana-test-validator --reset --quiet' http://127.0.0.1:8899/health 'mocha test/e2e'",
"test:build-programs": "cargo build-sbf --tools-version v1.43 --manifest-path ../program/Cargo.toml && cargo build-sbf --tools-version v1.43 --manifest-path ../program-2022/Cargo.toml && cargo build-sbf --tools-version v1.43 --manifest-path ../../associated-token-account/program/Cargo.toml",
"test:build-programs": "cargo build-sbf --tools-version v1.43 --force-tools-install --manifest-path ../program/Cargo.toml && cargo build-sbf --tools-version v1.43 --force-tools-install --manifest-path ../program-2022/Cargo.toml && cargo build-sbf --tools-version v1.43 --force-tools-install --manifest-path ../../associated-token-account/program/Cargo.toml",
"deploy": "npm run deploy:docs",
"docs": "shx rm -rf docs && typedoc && shx cp .nojekyll docs/",
"deploy:docs": "npm run docs && gh-pages --dest token/js --dist docs --dotfiles"
Expand Down

0 comments on commit d18a87d

Please sign in to comment.