Skip to content
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

feat(linter): show missing libraries corresponding package #4430

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

syu-w
Copy link
Contributor

@syu-w syu-w commented Oct 30, 2023

Show missing libraries that belong to any system packages when possible.

Based on @sergio-costas PR #4293

@syu-w syu-w force-pushed the work/CRAFT-2120-missing-library-package branch 4 times, most recently from 997881f to 3ed2dc1 Compare October 31, 2023 19:34
@@ -2,6 +2,6 @@ Running linters...
Running linter: classic
Running linter: library
Lint warnings:
- library: linter-test: missing dependency 'libcaca.so.0'. (https://snapcraft.io/docs/linters-library)
- library: linter-test: missing dependency 'libslang.so.2'. (https://snapcraft.io/docs/linters-library)
- library: linter-test: missing dependency 'libcaca.so.0'. (provided by 'libcaca0') (https://snapcraft.io/docs/linters-library)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am not sure it will be easy to correlate provided by with a possible stage-packages entry. Should be fine if the documentation mentions that.

Copy link
Contributor

@cmatsuoka cmatsuoka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@codecov-commenter
Copy link

codecov-commenter commented Nov 1, 2023

Codecov Report

Merging #4430 (4d35250) into main (fb9a01d) will decrease coverage by 0.03%.
The diff coverage is 84.37%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##             main    #4430      +/-   ##
==========================================
- Coverage   89.20%   89.18%   -0.03%     
==========================================
  Files         322      321       -1     
  Lines       21668    21650      -18     
==========================================
- Hits        19329    19308      -21     
- Misses       2339     2342       +3     
Files Coverage Δ
snapcraft/linters/library_linter.py 86.84% <84.37%> (-1.11%) ⬇️

... and 5 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sergiusens sergiusens merged commit 09edca3 into main Nov 1, 2023
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants