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

Building snap with core20 failed with non-informative error message #5003

Open
chanchiwai-ray opened this issue Aug 27, 2024 · 2 comments
Open

Comments

@chanchiwai-ray
Copy link

chanchiwai-ray commented Aug 27, 2024

Bug Description

When packing a snap with core20 using snapcraft pack, the error message is not informative.

To Reproduce

Use the simple snap/snapcraft.yaml

name: my-snap-name # you probably want to 'snapcraft register <name>'
base: core20 # the base snap is the execution environment for this snap
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: Single-line elevator pitch for your amazing snap # 79 char long summary
description: |
  This is my-snap's description. You have a paragraph or two to tell the
  most important story about your snap. Keep it under 100 words though,
  we live in tweetspace and your description wants to look good in the snap
  store.

grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots

parts:
  my-part:
    # See 'snapcraft plugins'
    plugin: nil

and run snapcraft pack

Environment

Name       Version      Rev    Tracking         Publisher   Notes
lxd        6.1-efad198  29943  latest/stable    canonical✓  -
snapcraft  8.3.2        12378  latest/stable/…  canonical✓  classic

snapcraft.yaml

name: my-snap-name # you probably want to 'snapcraft register <name>'
base: core20 # the base snap is the execution environment for this snap
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: Single-line elevator pitch for your amazing snap # 79 char long summary
description: |
  This is my-snap's description. You have a paragraph or two to tell the
  most important story about your snap. Keep it under 100 words though,
  we live in tweetspace and your description wants to look good in the snap
  store.

grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots

parts:
  my-part:
    # See 'snapcraft plugins'
    plugin: nil

Relevant log output

snapcraft pack                                                                                                                                                                                                                      
Usage: snapcraft pack [OPTIONS] DIRECTORY                                                                                                                                                                              
Try 'snapcraft pack -h' for help.                                                                                                                                                                                                    
                                                                                                                                                                                                                                  
Error: Missing argument 'DIRECTORY'.

Additional context

Switching to core22 worked

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

No branches or pull requests

3 participants
@chanchiwai-ray and others