Use the library linter¶
The following guidelines describe how to address issues flagged by the library linter.
To resolve a missing dependency, add the missing package to the part’s
stage-packages
key.
To resolve an unused library:
Library type |
Resolution |
---|---|
Dynamic linking |
If the |
Static linking |
Static linking libraries must only be present at build time. So, the part should
list the library in its |
Dynamic loading |
Snapcraft may falsely flag dynamic loading libraries as unused. In this case,
don’t change its declaration in the recipe. Moving or removing it has a high risk
of causing your app to malfunction at runtime. Instead, list it in the
|
See Manage dependencies for further details about the stage-packages
key.