Closed
Description
Bug Report
Current behavior
$ arduino-cli lib install --git-url /path/to/a/local/MyLibrary
--git-url and --zip-path flags allow installing untrusted files, use it at your own risk.
Enumerating objects: 305, done.
Counting objects: 100% (305/305), done.
Compressing objects: 100% (159/159), done.
Total 305 (delta 132), reused 280 (delta 126)
Installed Library from Git URL
It looks like a local path is accepted as argument for --git-url
. However the library is installed incorrectly, because it looks like it is copied in the root of the libraries directory instead of under its own directory:
ls ~/Documents/Arduino/libraries
README.adoc docs examples keywords.txt library.properties src
Expected behavior
Either:
ls ~/Documents/Arduino/libraries
MyLibrary
or:
Error: invalid URL supplied.
Note that it works correctly if I supply a proper git URL (https://github.com/foo/bar.git
).
Environment
- CLI version (output of
arduino-cli version
):arduino-cli alpha Version: 0.14.0 Commit: a86b21d99e2af9e0857da0ce4ab80baf1d3afb55 Date:
- OS and platform:
macOS
Additional context
I was looking for a way to install a library located in my filesystem. A --path
argument could be handy in addition to --git-url
and --zip-file
. Incidentally, my local library is a clone of a git repo so I tried to use --git-url
so I discovered this bug.
Metadata
Metadata
Assignees
Labels
No labels