add an `I_KNOW_TY_IS_PRE_RELEASE` env var to turn off the pre-release warning

This commit is contained in:
Jack O'Connor 2025-07-15 18:13:54 -07:00
parent e73a8ba571
commit c7a241e112
1 changed files with 5 additions and 3 deletions

View File

@ -68,10 +68,12 @@ fn run_check(args: CheckCommand) -> anyhow::Result<ExitStatus> {
let printer = Printer::default().with_verbosity(verbosity); let printer = Printer::default().with_verbosity(verbosity);
if std::env::var_os("I_KNOW_TY_IS_PRE_RELEASE").is_none() {
tracing::warn!( tracing::warn!(
"ty is pre-release software and not ready for production use. \ "ty is pre-release software and not ready for production use. \
Expect to encounter bugs, missing features, and fatal errors.", Expect to encounter bugs, missing features, and fatal errors.",
); );
}
tracing::debug!("Version: {}", version::version()); tracing::debug!("Version: {}", version::version());