platformio/platformio-core
在 GitHub 查看Silent failure when dependency path is incorrect in library.json
Open
#4,901 建立於 2024年4月19日
help wantedpackage management
倉庫指標
- Star
- (7,329 star)
- PR 合併指標
- (平均合併 109天 16小時) (30 天內合併 5 個 PR)
描述
Configuration
Operating system: Windows
PlatformIO Version: 6.1.14
Description of problem
If you put this in a library.json file:
{
"dependencies": {
"nonexistent_lib_1": "symlink:../hfzehfzeiohize",
"nonexistent_lib_2": "file:../hrfiohgeuibz"
}
}
PlatformIO will happily tell you:
Library Manager: Installing symlink:../hfzehfzeiohize
Library Manager: Installing file:../hrfiohgeuibz
even though none of those paths exist. This makes tracking path issues painful.
Expected Results
I would expect:
Library Manager: Installing symlink:../hfzehfzeiohize
PackageException: Can not create a symbolic link for `../hfzehfzeiohize`, not a directory
or:
Library Manager: Installing symlink:../hfzehfzeiohize
VCSBaseException: VCS: Unknown repository type symlink:../hfzehfzeiohize