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

cli,plugins: assume that core22 base wants v2 plugins. #3337

Merged
merged 11 commits into from
Nov 1, 2020

Conversation

xnox
Copy link
Contributor

@xnox xnox commented Oct 26, 2020

When trying to use build-base core22, some portions of cli/plugins
defaulted to legacy/v1 plugins, instead of v2.

Use a list of old cores, and assume anything new to be modern/v2.

Add a test for a "future core2y" to use v2 plugins.

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run ./runtests.sh static?
    • no, fails on groovy with new pyflakes?
  • Have you successfully run ./runtests.sh tests/unit?
    • no, fails on groovy, as it's trying to run pytest (python2) not pytest-3 (python3)?

When trying to use build-base core22, some portions of cli/plugins
defaulted to legacy/v1 plugins, instead of v2.

Use a list of old cores, and assume anything new to be modern/v2.
@xnox xnox requested a review from cjp256 October 29, 2020 14:52
Copy link
Collaborator

@sergiusens sergiusens left a comment

Choose a reason for hiding this comment

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

Looks pretty good. Thanks for improving Snapcraft. I have some minor suggestions for corrections and some ignorable nits

snapcraft/plugins/_plugin_finder.py Outdated Show resolved Hide resolved
tests/unit/commands/test_list_plugins.py Outdated Show resolved Hide resolved
tests/unit/pluginhandler/test_plugin_loader.py Outdated Show resolved Hide resolved
tests/unit/pluginhandler/test_plugin_loader.py Outdated Show resolved Hide resolved
xnox and others added 4 commits October 29, 2020 22:50
Co-authored-by: Sergio Schvezov <sergio.schvezov@canonical.com>
Co-authored-by: Sergio Schvezov <sergio.schvezov@canonical.com>
Co-authored-by: Sergio Schvezov <sergio.schvezov@canonical.com>
Co-authored-by: Sergio Schvezov <sergio.schvezov@canonical.com>
snapcraft/plugins/_plugin_finder.py Outdated Show resolved Hide resolved
snapcraft/plugins/_plugin_finder.py Outdated Show resolved Hide resolved
@sergiusens sergiusens merged commit 58cb9e3 into canonical:master Nov 1, 2020
abitrolly pushed a commit to abitrolly/snapcraft that referenced this pull request Mar 31, 2021
When trying to use build-base core22, some portions of cli/plugins
defaulted to legacy/v1 plugins, instead of v2.

Use a list of old cores, and assume anything new to be modern/v2.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
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.

None yet

3 participants