--- crates/dprint/src/commands/upgrade.rs.original	2022-07-26 12:19:26.000000000 +0100
+++ crates/dprint/src/commands/upgrade.rs	2022-07-26 12:20:27.000000000 +0100
@@ -25,6 +25,8 @@
     return Ok(());
   }
 
+  bail!("Cannot upgrade with `dprint upgrade` when the dprint executable is installed via MacPorts. Run `sudo port selfupdate && sudo port upgrade dprint` instead.");
+
   log_stdout_info!(environment, "Upgrading from {} to {}...", current_version, latest_version);
 
   let exe_path = environment.current_exe()?;
