Open chanchiwai-ray opened 1 month ago
Thanks for the bug report. This is indeed a bug - Snapcraft tries to be helpful and appends command-chain
to assumes
but it doesn't check if it is already there: https://github.com/canonical/snapcraft/blob/841d735c6777a9ac916dab477c8ba4b998c8bab7/snapcraft/meta/snap_yaml.py#L387-L388
Until this bug is fixed, the easiest workaround is to drop assumes: [command-chain]
from your snapcraft.yaml
and rely on Snapcraft to add it.
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3137.
This message was autogenerated
Bug Description
When the snap is built with the following section:
The snap cannot be uploaded to snap store with the following error:
To Reproduce
The bug can be reproduce using the tempest snap as an example: https://github.com/canonical/snap-tempest/blob/main/snap/snapcraft.yaml
I believe other snap with
will also fail to upload
Environment
using
snapcraft 8.3.1 12136 latest/stable/… canonical✓ classic
snapcraft.yaml
Relevant log output
Additional context
An inspection of
/snap/tempest/current/meta/snap.yaml
showed that somehowassumes
contains a duplicatedcommand-chain