espressif / idf-component-manager

Tool for installing ESP-IDF components
https://components.espressif.com/
Apache License 2.0
44 stars 16 forks source link

Add manifest path option to support renamed main component (PACMAN-482) #10

Closed jonathanfoster closed 1 year ago

jonathanfoster commented 1 year ago

Summary

This PR adds a component path option to manifest commands to support renamed main components as well as custom component paths.

# Add lvgl to main component renamed to src
compote manifest add-dependency lvgl/lvgl>=8.* --component-path /project/src

This PR resolves https://github.com/espressif/idf-component-manager/issues/9.

Impact

This PR should not impact any existing functionality as the new component path argument is optional and if not specified uses the default component directory path. Unit tests are included to check the existing functionality as well as the new functionality.

Related links

jonathanfoster commented 1 year ago

@kumekay Thanks for the feedback. Taking a look at the changes requested now.