Allow skipping the update checks using an environment variable (#900)

* Allow skipping the update checks using an environment variable

* Update `CHANGELOG.md`
This commit is contained in:
Jesse Braham 2025-06-24 09:53:09 +02:00 committed by GitHub
parent f12ecf363d
commit 29371c32f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 2 deletions

View File

@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add a `check-app-descriptor` bool option to `ImageArgs` and add the flag to `flash` command (#872)
- `Connection::into_serial` to get the underlying port from the connection (#882)
- All methods on the now removed `Target` & `ReadEFuse`, `UsbOtg` and `RtcWdtReset` traits have been implemented directly on (#891)
- Update checks can now be skipped by setting the the `ESPFLASH_SKIP_UPDATE_CHECK` environment variable (#900)
### Changed

View File

@ -57,7 +57,13 @@ enum CargoSubcommand {
subcommand: Commands,
/// Do not check for updates
#[clap(short = 'S', long, global = true, action)]
#[clap(
short = 'S',
long,
global = true,
env = "ESPFLASH_SKIP_UPDATE_CHECK",
action
)]
skip_update_check: bool,
},
}

View File

@ -30,7 +30,13 @@ pub struct Cli {
subcommand: Commands,
/// Do not check for updates
#[clap(short = 'S', long, global = true, action)]
#[clap(
short = 'S',
long,
global = true,
env = "ESPFLASH_SKIP_UPDATE_CHECK",
action
)]
skip_update_check: bool,
}