← Back to issue list

Add a linter for staged libraries included in the base snap

View original Github issue

Metadata

Project
snapcraft
Number
#4149
Type
issue
State
open
Author
sergiusens
Labels
Status: Triaged Type: Enhancement
Created
2023-05-17 16:45:15+00:00
Updated
2025-04-24 13:40:28+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done Add a linter that can display any libraries in a snap that are also provided by the base snap. The bases for this implementation are https://github.com/snapcore/snapcraft/pull/3413 (described in item 3 https://github.com/snapcore/snapcraft/pull/3413#issuecomment-909104850) ### Why it needs to get done This reduces the surface area of a snap from a security standpoint and makes the snap smaller. A `stage-packages` entry will always stage a package, even if it is included by the base snap. This may be intentional but usually it isn't.

Evaluation history

No evaluation history available.