We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d461a78 commit 0e1a71fCopy full SHA for 0e1a71f
cli/tools/upgrade.rs
@@ -15,6 +15,7 @@ use once_cell::sync::Lazy;
15
use std::env;
16
use std::fs;
17
use std::io::Write;
18
+use std::ops::Sub;
19
use std::path::Path;
20
use std::path::PathBuf;
21
use std::process::Command;
@@ -75,7 +76,9 @@ pub fn check_for_upgrades(cache_dir: PathBuf) {
75
76
};
77
78
let file = CheckVersionFile {
- last_prompt: chrono::Utc::now(),
79
+ // put a date in the past here so that prompt can be shown on next run
80
+ last_prompt: chrono::Utc::now()
81
+ .sub(chrono::Duration::hours(UPGRADE_CHECK_INTERVAL + 1)),
82
last_checked: chrono::Utc::now(),
83
latest_version,
84
0 commit comments