Skip to content

fix(library): honor unnamed local lib_deps (symlink://, file://, bare paths) - #1751

Merged
zackees merged 2 commits into
mainfrom
fix/local-lib-deps-unnamed
Oct 26, 2026
Merged

zackees merged 2 commits into
mainfrom
fix/local-lib-deps-unnamed

Conversation

@zackees

@zackees zackees commented Oct 26, 2026

Copy link
Copy Markdown
Member

Unnamed local lib_deps entries (symlink://<path>, file://<path>, bare absolute/relative directory paths) were silently dropped by LibrarySpec::parse, so lib_deps = symlink:///home/me/dev/fastled2 failed with fatal error: FastLED.h: No such file or directory.

Now they are local libraries used in place (no copy; same path as lib/<name> and named Name=symlink://). Relative paths resolve against the project dir; the name comes from library.json / library.properties name (fallback: directory name); lib_ignore matches that name; a missing path is a hard error; any unparseable entry now logs a warning.

Evidence:

  • Unit tests for parsing (library_spec) plus in-place resolution, manifest naming, lib_ignore and missing-path error (library_manager, real tempdirs): fbuild-library library:: tests, 318 passed.
  • End-to-end: ESP32-C6 (pioarduino 55.03.311) project with lib_deps = symlink:///home/niteris/dev/fastled2 and no lib/: before, FastLED.h not found; after, build succeeded (flash 394716 B). Bare-path form also builds. The FastLED checkout is left untouched.

… paths)

PlatformIO-style local lib_deps without a Name= prefix were silently dropped
by LibrarySpec::parse, so `lib_deps = symlink:///path/to/FastLED` failed
with 'FastLED.h: No such file or directory'.

Parse symlink://<path>, file://<path> and bare absolute/relative directory
paths as local libraries used in place (like lib/<name>), resolved against
the project dir. The library name comes from library.json/library.properties
and falls back to the directory name; lib_ignore applies to that name. A
missing path is a hard error, and unparseable entries now warn instead of
vanishing.
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zackees
zackees merged commit 2421910 into main Oct 26, 2026
24 checks passed
@zackees
zackees deleted the fix/local-lib-deps-unnamed branch October 26, 2026 22:52
zackees added a commit that referenced this pull request Oct 27, 2026
Ships unnamed local lib_deps support (symlink://, file://, bare paths) (#1751).
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

1 participant