snapcraft try not available for core22-based snap

Bug #1978844 reported by Alberto Donato
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Committed
Undecided
Unassigned

Bug Description

The `snapcraft try` command is not available when building a core22-based snap

Trying different combination of options falls back to the legacy implementation:

$ snapcraft -v try
2022-06-15 17:17:14.730 Starting Snapcraft 7.0.4
2022-06-15 17:17:14.730 Logging execution to '/home/ack/.cache/snapcraft/log/snapcraft-20220615-171714.729051.log'
Usage: snapcraft [OPTIONS] COMMAND [ARGS]...
Try 'snapcraft -h' for help.

Error: No such option: -v

$ snapcraft try
Support for 'multipass' needs to be set up. Would you like to do it now? [y/N]: ^CAborted!

$ snapcraft --use-lxd try
Cannot pack snap file: Command '['snap', 'pack', '--check-skeleton', 'try']' returned non-zero exit status 1. (error: open try/meta/snap.yaml: no such file or directory)
Full execution log: '/home/ack/.cache/snapcraft/log/snapcraft-20220615-171729.488780.log'

Tags: craft-1121
tags: added: craft-1121
Changed in snapcraft:
status: New → Triaged
Revision history for this message
Tiago Nobrega (tigarmo) wrote :

A fix that adds support for `snapcraft try` for core22 has been merged (it should be available on latest edge). Thanks!

Changed in snapcraft:
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.