Include Local GIT Repositories with #TAG from platformio.ini lib_deps

Hi. I can’t find information about using GIT Local Repositories. I intend to call back through platformio.ini lib_deps a certain version of the local GIT using a #TAG.

I had to try so many combinations!! (mindmeld)
The only one that works and is not mentioned in the examples is:
git+…/…/ard-lib1#main
^^^___________^no final /, no.git here
I know that in the faq it is written to use this protocol key
but then different examples are given which look like completion and are misleading in my case.

Now I solved it while writing here after days of testing…
Please add such type of code into yours examples.

And then: I don’t see the library Auto-Update in this application project when I commit the library in it’s original directory.

I tried to force the update but it gives me an error:

*  Executing task: C:\Users\user\.platformio\penv\Scripts\platformio.exe pkg update 
Resolving LCD dependencies...
Error: VCS: Could not receive an output from `['git', 'ls-remote', '../../ard-lib1', 'refs/heads/main']` command ({'out': '', 'err': "fatal: '../../ard-lib1' does not appear to be a git repository\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n", 'returncode': 128})       

Instead it works and updates by doing it all over again:
CleanAll + Compile

Thanks -Fixus971

1 Like

Can you open an issue in Issues · platformio/platformio-core · GitHub for this?