From c5f73be59a0f6e88c4bf10f83ef1c19d635beb76 Mon Sep 17 00:00:00 2001 From: Lucas Bustamante Date: Wed, 13 Mar 2024 13:19:01 -0300 Subject: [PATCH] Add comment --- .../Environment/ExtensionDownload/ExtensionDownloader.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/src/Environment/ExtensionDownload/ExtensionDownloader.php b/src/src/Environment/ExtensionDownload/ExtensionDownloader.php index b87ab128..9f48f88a 100644 --- a/src/src/Environment/ExtensionDownload/ExtensionDownloader.php +++ b/src/src/Environment/ExtensionDownload/ExtensionDownloader.php @@ -77,6 +77,11 @@ public function download( EnvInfo $env_info, string $cache_dir, array $plugins = } elseif ( is_dir( $e->path ) ) { if ( ! getenv( 'QIT_ALLOW_WRITE' ) ) { // Set it as read-only to prevent dev messing up their local copy inadvertently (default behavior). + + // Inform the user about the read-only mapping + $this->output->writeln( "Notice: Mapping '{$e->type}s/{$e->extension_identifier}' as read-only to protect your local copy." ); + + // Set it as read-only $env_info->volumes["/app/wp-content/{$e->type}s/{$e->extension_identifier}:ro"] = $e->path; } else { $env_info->volumes["/app/wp-content/{$e->type}s/{$e->extension_identifier}"] = $e->path;