Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

sparkyb
Copy link

@sparkyb sparkyb commented Sep 11, 2025

Previously a local library path would be relative to the sketch folder if you passed a folder path to compile, but if you passed a path to a sketch .ino file, it would be considered relative to that. This change makes it so that relative paths will consistently be interpreted relative to the folder whether you specify a .ino file or not.

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

#3005

Previously a local library path would be relative to the sketch folder if you
passed a folder path to compile, but if you passed a path to a sketch .ino file,
it would be considered relative to that. This change makes it so that relative
paths will consistently be interpreted relative to the folder whether you
specify a .ino file or not.
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project topic: package-management Related to the packaging and managing of the platform/libraries labels Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself topic: package-management Related to the packaging and managing of the platform/libraries type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect relative local library dependency path resolution when sketch file path used as argument
2 participants