File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -70,11 +70,12 @@ fn main() {
70
70
}
71
71
72
72
// check_version warnings are not printed during setup, or during CI
73
- let changelog_suggestion = if matches ! ( config. cmd, Subcommand :: Setup { .. } ) || CiEnv :: is_ci ( ) {
74
- None
75
- } else {
76
- check_version ( & config)
77
- } ;
73
+ let changelog_suggestion =
74
+ if matches ! ( config. cmd, Subcommand :: Setup { .. } ) || CiEnv :: is_ci ( ) || config. dry_run ( ) {
75
+ None
76
+ } else {
77
+ check_version ( & config)
78
+ } ;
78
79
79
80
// NOTE: Since `./configure` generates a `config.toml`, distro maintainers will see the
80
81
// changelog warning, not the `x.py setup` message.
@@ -188,7 +189,6 @@ fn check_version(config: &Config) -> Option<String> {
188
189
) ) ;
189
190
190
191
if io:: stdout ( ) . is_terminal ( ) {
191
- t ! ( std:: fs:: create_dir_all( warned_id_path. parent( ) . unwrap( ) ) ) ;
192
192
t ! ( fs:: write( warned_id_path, latest_change_id. to_string( ) ) ) ;
193
193
}
194
194
} else {
You can’t perform that action at this time.
0 commit comments