You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if !is_version_fully_compatible(supported_on, spin_version)? {
184
+
let show_warnings = !suppress_compatibility_warnings();
184
185
let version = Version::parse(spin_version)?;
185
186
if !version.pre.is_empty(){
186
-
if std::io::stderr().is_terminal(){
187
+
if std::io::stderr().is_terminal()&& show_warnings {
187
188
terminal::warn!("You're using a pre-release version of Spin ({spin_version}). This plugin might not be compatible (supported: {supported_on}). Continuing anyway.");
188
189
}
189
190
}elseif override_compatibility_check {
190
-
terminal::warn!("Plugin is not compatible with this version of Spin (supported: {supported_on}, actual: {spin_version}). Check overridden ... continuing to install or execute plugin.");
191
+
if show_warnings {
192
+
terminal::warn!("Plugin is not compatible with this version of Spin (supported: {supported_on}, actual: {spin_version}). Check overridden ... continuing to install or execute plugin.");
193
+
}
191
194
}else{
192
195
returnErr(anyhow!(
193
196
"Plugin is not compatible with this version of Spin (supported: {supported_on}, actual: {spin_version}). Try running `spin plugins update && spin plugins upgrade --all` to install latest or override with `--override-compatibility-check`."
0 commit comments