Skip to content

lib_deps: a GitHub URL with a #ref downloads main.zip and fails (2.5.51) #2018

Open

Description

@stevenmunn312-tech

Summary

On fbuild 2.5.51 a lib_deps GitHub URL with a #ref does not install: fbuild downloads main.zip from a URL that still includes the ref, and fails on the HTML page GitHub answers with. The same happened on 2.5.37.

Reproduce

fbuild 2.5.51+git.9b26affea5ad, Windows 11, 2026-11-14. A blink src/main.cpp and:

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps = https://github.com/schreibfaul1/ESP32-audioI2S.git#3.0.12
$ fbuild install <project> -e esp32dev
  failed      library   schreibfaul1/ESP32-audioI2S.git#3.0.12 - - 0ms https://github.com/schreibfaul1/ESP32-audioI2S.git#3.0.12 -
      error: package error: failed to open zip <project>\.fbuild\build\esp32dev\release\libs\esp32-audioi2s.git#3.0.12\_download\main.zip: invalid Zip archive: Could not find EOCD

Expected

The archive of tag 3.0.12, as PlatformIO resolves the same line.

Also noticed: an unused lib_deps library is still built

[env:uno]
platform = atmelavr
board = uno
framework = arduino
lib_deps = fastled/FastLED

With a blink that includes only Arduino.h, the build leaves libs/fastled/libfastled.a under the build directory, and on a cold cache it compiled FastLED's sources first (2026-11-12). The image is unaffected (924 bytes), so the cost is build time. Libraries under lib/ are selected by the include walk since 2.5.28; lib_deps libraries are not.

Impact

Design Studio for FastLED pins ESP32-audioI2S by tag, so it vendors the library into lib/ instead of naming it in lib_deps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions