-
-
Notifications
You must be signed in to change notification settings - Fork 804
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
Add support for subdirectories when adding git repos as a library #3990
Comments
This would also help pio work better with monorepos! |
This feature is important |
Yeah this would be a very useful feature |
Agreed, would be quite useful |
It would also make it possible to override individual platform libraries with forks, which unfortunately I need to do, and the workaround (separate management of a local copy of that repo along with a symlink:// lib_dep) is error-prone. |
I would agree to this, a whole bunch of ESP-IDF components, for example, are in the ESP-BSP-repository and I cannot add them as it is now. Accepting a https://github.com/espressif/esp-bsp.git/components/esp_lvgl_port-syntax, by identifying the break at the ".git", or using some other scheme. Or add a "path", as in idf_component.yml. It is quite usable. |
I also just noted that the maximum length of the URL, it seems like it is only 100 characters, which is super tight and will probably run out in many cases. The max length for most browsers are around 2000 characters, and several permanent link schemes has more than 100 characters. This actually became a problem, I had to just not manually upload, but rename: ..to be able to refer to them in the dependencies. |
Some libraries are available as folders inside a Git repo. One example being ArduCAM.
The Arduino code for the ArduCAM is in this repo: https://github.com/ArduCAM/Arduino. Rather than have one library in this repo, it contains multiple libraries each inside a folder in this repo. It would be a great enhancement to be able to specify a folder inside a git repo for a library dependency to remove the need to configure library directories, or download the repo and copy one folder into the
lib
folder.For example, being able to write something like:
lib_deps = https://github.com/ArduCAM/Arduino/tree/master/ArduCAM
The text was updated successfully, but these errors were encountered: