ci: allow local bypass of stale Cargo.lock check with custom variable instead of `CI` (#32798)

ci: don't use `CI` envvar to skip local stale Cargo.lock check

to enable
```bash
echo "export SOLANA_CI_ALLOW_STALE_CARGO_LOCK=" >> ~/.profile
```
This commit is contained in:
Trent Nelson 2023-08-11 13:53:16 -06:00 committed by GitHub
parent 2ea88b41fb
commit b83cef43fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ cargoNightly="$(readlink -f "./cargo") nightly"
scripts/increment-cargo-version.sh check
if [ -n "$CI" ] ; then
if ! [ -v SOLANA_CI_ALLOW_STALE_CARGO_LOCK ] ; then
# Disallow uncommitted Cargo.lock changes
(
_ scripts/cargo-for-all-lock-files.sh tree >/dev/null