Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the option to use custom paths for the platforms, packages, cache and projects directories and added the option to turn on/off telemetry #3974

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ItsMeel
Copy link

@ItsMeel ItsMeel commented Feb 10, 2024

This PR adds the capacity to use custom paths for the platforms, packages, cache and projects directories by adding a setting for each of them and a setting to enable or disable telemetry which should solve issue #898.

It works by assigning the configuration value of the environment variables:

Configuration Environment variable Default value
platformsPATH PLATFORMIO_PLATFORMS_DIR null
packagesPATH PLATFORMIO_PACKAGES_DIR null
cachePATH PLATFORMIO_CACHE_DIR null
projectsDirectoryPATH PLATFORMIO_SETTING_PROJECTS_DIR null
enableTelemetry PLATFORMIO_SETTING_ENABLE_TELEMETRY true

In the case of the directories if the configuration has some value it will be assigned to the environment variable but if the configuration is null it won't create the environment variable and platformio will use the default directories.

This ability to use custom paths allows the user use a custom platformio installation like installing plaformio in a USB drive and carry all the platforms and toolchains on the go.

Currently there is some obligatory use of the %USER%/.platformio directory for the appstate.json, homestate.json files and .cache/tmp directory but i was able to work from a USB drive without any problem.

…he and projects directories and added the option to turn on/off telemetry
@CLAassistant
Copy link

CLAassistant commented Feb 10, 2024

CLA assistant check
All committers have signed the CLA.

Copy link

stale bot commented Apr 22, 2024

This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants