platformio/platformio-core

GitHub dependency graph for lib_deps

Open

#4.184 geöffnet am 16. Feb. 2022

Auf GitHub ansehen
 (4 Kommentare) (4 Reaktionen) (0 zugewiesene Personen)Python (791 Forks)batch import
help wantedintegration

Repository-Metriken

Stars
 (7.329 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 109T 16h) (5 gemergte PRs in 30 T)

Beschreibung

Configuration

Operating system: Win10

PlatformIO Version (platformio --version): 5.2.5

Description of problem

There appears to be no current support for GitHub dependency graph and Dependabot alerts. Supporting GitHub dependency graph would be great for security updates in addition to the dependency graph it adds.

Steps to Reproduce

  1. Create new PlatformIO project via "New Project" button (configure name, board, framework, location)
  2. Open the "Libraries" tab find and select a library to install (for example: esp32-camera)
  3. Click "Add to Project" button
  4. Select the project that the dependency should be added to (seems like this should only be the current project)
  5. Click the "Add" button
  6. Push project to GitHub

Actual Results

Dependency is installed in /.pio/libdeps and added to lib_deps in /platformio.ini file which GitHub doesn't support for package management:

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps = espressif/esp32-camera@^2.0.0

Expected Results

Dependency is configured in a way compatible with GitHub's dependency graph.

Additional info

Community suggestion by @nicolas-rabault https://community.platformio.org/t/make-platformio-work-with-github-dependencies-graph/12965

Contributor Guide