Repository: dprint/dprint (language: rust)

Issue:
latest version's `init` says it's an old version
```
$ dprint --version
dprint 0.47.0
$ dprint upgrade
Already on latest version 0.47.0
$ dprint init
You are using an old version of dprint so the created config file may not be as helpful of a starting point. Consider upgrading to support new plugins. Plugin system schema version is 4, latest is 3.

Created ./dprint.json

If you are working in a commercial environment please consider sponsoring dprint: https://dprint.dev/sponsor
$
```

At a glance message "You are using an old version …" is wrong and shouldn't be printed.


Discussion / hints:
Thanks, it should be fixed now, but I'm going to leave this open in order to improve the error message when the version is greater than what's on the website.

Fix patch:
diff --git a/crates/dprint/src/configuration/get_init_config_file_text.rs b/crates/dprint/src/configuration/get_init_config_file_text.rs
index 564e0fbe8..674735aa7 100644
--- a/crates/dprint/src/configuration/get_init_config_file_text.rs
+++ b/crates/dprint/src/configuration/get_init_config_file_text.rs
@@ -8,7 +8,7 @@ pub async fn get_init_config_file_text(environment: &impl Environment) -> Result
   let info = match read_info_file(environment).await {
     Ok(info) => {
       // ok to only check wasm here because the configuration file is only ever initialized with wasm plugins
-      if info.plugin_system_schema_version != wasm::PLUGIN_SYSTEM_SCHEMA_VERSION {
+      if wasm::PLUGIN_SYSTEM_SCHEMA_VERSION < info.plugin_system_schema_version {
         log_error!(
           environment,
           concat!(


Test patch: