-
-
Notifications
You must be signed in to change notification settings - Fork 408
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 our terms of service and privacy 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?
Conversation
634d074
to
cdd7f4e
Compare
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 a sketch.yaml
with also relative lib.
1d46837
to
0bd806e
Compare
Please check if the PR fulfills these requirements
See how 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 is titled accordingly?
No
Other information