diff --git a/HISTORY.rst b/HISTORY.rst index 19241e89..adf17a64 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -18,6 +18,7 @@ PlatformIO Core 6 * Speeded up device port finder by avoiding loading board HWIDs from development platforms * Improved caching of build metadata in debug mode +* Fixed an issue when `pio pkg install --storage-dir `__ command requires PlatformIO project (`issue #4410 `_) 6.1.4 (2022-08-12) ~~~~~~~~~~~~~~~~~~ diff --git a/platformio/package/commands/install.py b/platformio/package/commands/install.py index ecfbe7bb..6041e357 100644 --- a/platformio/package/commands/install.py +++ b/platformio/package/commands/install.py @@ -61,7 +61,7 @@ from platformio.test.runners.factory import TestRunnerFactory @click.option("-f", "--force", is_flag=True, help="Reinstall package if it exists") @click.option("-s", "--silent", is_flag=True, help="Suppress progress reporting") def package_install_cmd(**options): - if options.get("global"): + if options.get("global") or options.get("storage_dir"): install_global_dependencies(options) else: install_project_dependencies(options)