-
Notifications
You must be signed in to change notification settings - Fork 64
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
Update library_builder.py #105
Conversation
In the end of function ‘download_mcu_environment’, line139,download_extra_packages once。 but in line 75, download_extra_packages again。 which will cause error [fatal: destination path '/home/xxx/Desktop/arduino/hello_microros/.pio/libdeps/featheresp32/micro_ros_platformio/build/mcu/src/control_msgs' already exists and is not an empty directory.]
Sorry,it is line 65 and line 123 in this repository. I mixed up this repository with another one. |
We are not removing this line. If the problem is related to an existing folder, please add the correct checks to avoid the error. |
The "already exists" error occurs when you use extra_packages.repos to add another library(s). This will definitely occur because of [library_builder.py L137], which contains the following code:
The clone method simply executes a git [repositories.py L27]
When the first clone operation is executed, the path will be created. However, if a second clone operation is attempted, the error will occur. Therefore, removing this line may be the simplest solution. |
@G-Yong Could you detail the steps to replicate your error? We cannot remove that line, as it would completely remove the extra packages functionality. |
@Acuadros95 Sure. The following are the steps to reproduce the error.
Steps to reproduce:
As you can see, library_builder.py executed two git commands at the end. |
Sorry, I made a mistake with another repository. This repository did not have this error. |
In the end of function ‘download_mcu_environment’, line139,download_extra_packages once。 but in line 75, download_extra_packages again。
which will cause error [fatal: destination path '/home/xxx/Desktop/arduino/hello_microros/.pio/libdeps/featheresp32/micro_ros_platformio/build/mcu/src/control_msgs' already exists and is not an empty directory.]