Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork410
Allow locally installed libraries in sketch profiles.#2930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
634d074
tocdd7f4e
Comparecodecovbot commentedJun 10, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## master #2930 +/- ##==========================================+ Coverage 67.84% 67.88% +0.04%========================================== Files 238 238 Lines 22442 22477 +35 ==========================================+ Hits 15226 15259 +33+ Misses 6014 6012 -2- Partials 1202 1206 +4
Flags with carried forward coverage won't be shown.Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
The implementation looks good, I'd just add a test to assert the compilation given asketch.yaml
with also relative lib.
Uh oh!
There was an error while loading.Please reload this page.
1d46837
to0bd806e
Compareegnor commentedJun 13, 2025
This is amazing! I will finally be able to get rid of my various hacky uses of |
alessio-perugini commentedJun 13, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@egnor 😄 If you want to give it a try, before we merge this, you can find the test binaries here:https://github.com/arduino/arduino-cli/actions/runs/15586877233 Feedbacks are always welcomed 🤓 |
Please check if the PR fulfills these requirements
Seehow to contribute
before creating one)
our contributing guidelines
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?
This change allows us to specify libraries in the sketch profile using a path to a local directory by prefixing the path with the string
dir:
.It also provides this information in
compile --dump-profile
What is the current behavior?
Only libraries in the Arduino Libraries Index could be specified in a sketch profile. A typical example may be the following:
What is the new behavior?
A library installed in the filesystem could be specified as well:
In this case the two libraries:
libraries/MyLib
/path/to/library/MyLibOutsideTheSketch
will be included during the compilation. In particular, a relative path refers to a path relative to the sketch path, in this case
libraries/MyLib
is to be intended asSKETCHPATH/libaries/MyLib
.Does this PR introduce a breaking change, and istitled accordingly?
No
Other information