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
lifecycle: only warn when a default provider snap is missing #2885
Conversation
Snapcraft gained the ability to check for artifacts from snaps listed as plugs when using the content interface. The side effect, is that the snap needs to be published on the main Snap Store, this is a requirement brand stores cannot meet, so instead of failing, Snapcraft resorts to warning instead. Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
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.
This is a much better outcome to warn when attempting to inspect a content snap in a brand store rather than an outright hard failure.
fix in next commit
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.
Excellent! LGTM, a couple of optional UI text nits.
Thanks for taking it on 👍
installed_snaps += repo.snaps.install_snaps([content_snap]) | ||
except repo.snaps.errors.SnapUnavailableError: | ||
logger.warning( | ||
f"Could not install snap defined in a plug {content_snap!r}. " |
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.
nit: s/in a plug/in plug/
logger.warning( | ||
f"Could not install snap defined in a plug {content_snap!r}. " | ||
"The missing library report may have false positives listed if those " | ||
"libraries were to be provided by the content snap." |
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.
nit: s/were to be/are
…al#2885) Snapcraft gained the ability to check for artifacts from snaps listed as plugs when using the content interface. The side effect, is that the snap needs to be published on the main Snap Store, this is a requirement brand stores cannot meet, so instead of failing, Snapcraft resorts to warning instead. Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
Snapcraft gained the ability to check for artifacts from snaps listed as plugs when using the content interface. The side effect, is that the snap needs to be published on the main Snap Store, this is a requirement brand stores cannot meet, so instead of failing, Snapcraft resorts to warning instead. Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
Snapcraft gained the ability to check for artifacts from snaps listed as plugs
when using the content interface.
The side effect, is that the snap needs to be published on the main Snap Store,
this is a requirement brand stores cannot meet, so instead of failing,
Snapcraft resorts to warning instead.
Signed-off-by: Sergio Schvezov sergio.schvezov@canonical.com
./runtests.sh static
?./runtests.sh tests/unit
?