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

snapcraft list-plugins --base=core20 fails in a core24 project directory #5008

Closed
mr-cal opened this issue Aug 29, 2024 · 1 comment · Fixed by #5007
Closed

snapcraft list-plugins --base=core20 fails in a core24 project directory #5008

mr-cal opened this issue Aug 29, 2024 · 1 comment · Fixed by #5007
Labels
bug Actual bad behavior that don't fall into maintenance or documentation triaged

Comments

@mr-cal
Copy link
Collaborator

mr-cal commented Aug 29, 2024

Bug Description

snapcraft list-plugins --base=core20 fails in a core24 project directory

To Reproduce

snapcraft list-plugins --base=core20

Environment

n/a

snapcraft.yaml

name: hello-world
version: "1.0"
summary: test
description: test
confinement: strict
base: core24

parts:
  my-part:
    plugin: nil

Relevant log output

2024-08-29 09:45:43.404 Starting snapcraft, version 8.3.2.post65+git4bbfde2a
2024-08-29 09:45:43.404 Log verbosity level set to BRIEF
2024-08-29 09:45:43.404 Configuring application...
2024-08-29 09:45:43.404 Preparing application...
2024-08-29 09:45:43.405 Build plan: platform=None, build_for=None
2024-08-29 09:45:43.405 Running snapcraft list-plugins on host
2024-08-29 09:45:43.405 snapcraft internal error: LegacyFallback()
2024-08-29 09:45:43.408 Traceback (most recent call last):
2024-08-29 09:45:43.408   File "/snap/snapcraft/12498/lib/python3.10/site-packages/craft_application/application.py", line 538, in run
2024-08-29 09:45:43.408     return_code = dispatcher.run() or os.EX_OK
2024-08-29 09:45:43.408   File "/snap/snapcraft/12498/lib/python3.10/site-packages/craft_cli/dispatcher.py", line 487, in run
2024-08-29 09:45:43.408     return self._loaded_command.run(self._parsed_command_args)
2024-08-29 09:45:43.408   File "/snap/snapcraft/12498/lib/python3.10/site-packages/snapcraft/commands/plugins.py", line 64, in run
2024-08-29 09:45:43.408     raise errors.LegacyFallback()
2024-08-29 09:45:43.408 snapcraft.errors.LegacyFallback
2024-08-29 09:45:43.408 Full execution log: '/home/developer/.local/state/snapcraft/log/snapcraft-20240829-094543.403830.log'

Additional context

This fails because snapcraft raises a LegacyFallback after creating a dispatcher via craft-application:

def run(self, parsed_args):
if parsed_args.base in ("core18", "core20"):
raise errors.LegacyFallback()

@canonical canonical deleted a comment from Gross-Igna Aug 29, 2024
@mr-cal mr-cal added bug Actual bad behavior that don't fall into maintenance or documentation triaged labels Aug 29, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3315.

This message was autogenerated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Actual bad behavior that don't fall into maintenance or documentation triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant