platformio/platformio-core

Failed to find registry package after installing it with pio lib install

Open

#4,536 建立於 2023年1月31日

在 GitHub 查看
 (8 留言) (0 反應) (0 負責人)Python (791 fork)batch import
help wantedpackage management

倉庫指標

Star
 (7,329 star)
PR 合併指標
 (平均合併 109天 16小時) (30 天內合併 5 個 PR)

描述

What kind of issue is this?

  • PlatformIO Core. If you’ve found a bug, please provide an information below.

Configuration

Operating system: Ubuntu 20.04 and MacOS 13.0.1 (Ventura)

PlatformIO Version (platformio --version): PlatformIO Core, version 6.1.6a4

Description of problem

When installing Zenoh-Pico from PlatformIO registry (https://registry.platformio.org/libraries/cguimaraes/zenoh-pico), it fails to build because it cannot find Zenoh-Pico package.

Upon installing the library using pio lib install cguimaraes/zenoh-pico, the following entry in platformio.ini is added:

lib_deps = cguimaraes/zenoh-pico@^0.7.0-rc

While doing some investigation, it seems that the issue lies on having the ^ in @^0.7.0-rc. Meaning, it works as expected if:

lib_deps = cguimaraes/zenoh-pico

or

lib_deps = cguimaraes/zenoh-pico@0.7.0-rc

Also, setting the GitHub works as expected:

lib_deps = https://github.com/eclipse-zenoh/zenoh-pico

Steps to Reproduce

  1. pio init -b esp32-c3-devkitm-1
  2. pio lib install cguimaraes/zenoh-pico
  3. pio run

Actual Results

Library Manager: Installing cguimaraes/zenoh-pico @ ^0.7.0-rc
Error: Could not find the package with 'cguimaraes/zenoh-pico @ ^0.7.0-rc' requirements for your system 'linux_x86_64'
Library Manager: Installing cguimaraes/zenoh-pico @ ^0.7.0-rc
Error: Could not find the package with 'cguimaraes/zenoh-pico @ ^0.7.0-rc' requirements for your system 'darwin_arm64'

Expected Results

(...)
Scanning dependencies...
Dependency Graph
|-- zenoh-pico @ 0.7.0-rc
|   |-- BluetoothSerial @ 2.0.0
(...)

If problems with PlatformIO Build System:

The content of platformio.ini:

[env:esp32-c3-devkitm-1]
platform = espressif32
board = esp32-c3-devkitm-1
framework = arduino
lib_deps = cguimaraes/zenoh-pico@0.7.0-rc

Source file to reproduce issue: An empty project is sufficient

Additional info

The issue happens for any of the supported frameworks by Zenoh-Pico library: Arduino, ESPIDF, Zephyr and Mbed.

貢獻者指南