-
-
Notifications
You must be signed in to change notification settings - Fork 403
Use the correct library when a relative path is passed as --library
value
#2126
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
Use the correct library when a relative path is passed as --library
value
#2126
Conversation
ae1d5ca
to
51569a5
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2126 +/- ##
==========================================
- Coverage 62.56% 62.47% -0.09%
==========================================
Files 231 231
Lines 19610 19599 -11
==========================================
- Hits 12269 12245 -24
- Misses 6238 6250 +12
- Partials 1103 1104 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 12 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
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.
There is no need to bundle the entire ArduinoIoTCloud library as test data. You can use a minimal library instead:
The only requirements for the test data:
- A sketch that contains an
#include
directive. - A library that:
- contains a header file with name matching the
#include
directive in the sketch - contains at least one source file (e.g.,
FooLib.cpp
)
- contains a header file with name matching the
20bcebf
to
53ae148
Compare
a45c362
to
24acd2e
Compare
--library
value--library
value
24acd2e
to
2b8c48d
Compare
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.
Thanks Matteo!
2b8c48d
to
04f71b0
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?
Code imperfection fix
What is the current behavior?
Compiling an example of a manually downloaded library fails if the command is executed inside the examples directory and a relative path to the library itself is specified.
If the same library is installed with
lib install
, the library is picked from the Sketchbook's libraries directory.What is the new behavior?
If the relative path to a library is correct, that library will be chosen over other instances of it.
Does this PR introduce a breaking change, and is titled accordingly?
No