← Back to issue list

snapcraft pack --use-lxd ask for the optional directory

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1983571
Type
issue
State
closed
Author
~gbeuzeboc
Labels
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

CLI parsing bug where snapcraft pack --use-lxd incorrectly requires a directory argument despite documentation showing it as optional. Unlabeled, no maintainer response, inactive for ~4 years.

Suggested action: close stale

Reason: The issue has been inactive for approximately four years with no maintainer engagement. The reported version (7.1.0) is significantly outdated, and CLI argument parsing behavior has likely changed in newer releases, making this report irrelevant to the current codebase.

Staleness: 95 Complexity: 35 Confidence: 90 Support Request: 10

Issue body

The snapcraft pack command is supposed to take optional options and an optional directory. After running `snapcraft prime --use-lxd`, I wanted to run `snapcraft pack --use-lxd` When specifying a flag (--use-lxd in this case), the snapcraft command complains about the missing directory: Usage: snapcraft pack [OPTIONS] DIRECTORY Try 'snapcraft pack -h' for help. Error: No such option: --use-lxd While `snapcraft pack --help` shows: Usage:      snapcraft pack [options] <directory> Summary:     Process parts and create a snap file containing the project payload     with the provided metadata. If a directory is specified, pack its     contents instead. Options:                        ...                        --use-lxd: Use LXD to build I ran my test with a simple core20 snap. snapd: 2.56.2 snapcraft: 7.1.0

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 35
Confidence: 90
Support Request: 10
close stale CLI parsing bug where snapcraft pack --use-lxd incorrectly requires a directory argument despite documentation showing it as optional. Unlabeled, no maintainer response, inactive for ~4 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 30
Confidence: 90
Support Request: 10
close stale snapcraft pack --use-lxd incorrectly requires a directory argument despite being documented as optional. Untriaged and inactive for ~4 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 20
Confidence: 85
Support Request: 10
close stale Reports a CLI parsing error where snapcraft pack --use-lxd incorrectly requires a directory argument despite help text indicating it is optional. Reported for snapcraft 7.1.0 with no maintainer response or updates.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 30
Confidence: 85
Support Request: 10
needs triage snapcraft pack CLI requires a directory argument when flags like --use-lxd are used, despite help text indicating it is optional. Unlabeled, no maintainer response, inactive for ~4 years.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1865230 snapcraft --use-lxd should have message about requring sudo snapcraft (launchpad) open snapcraft 3.x --use-lxd (LXD provider, a technology preview) left LXD in a broken state when run without sudo; reporter suggests failing early. 6.5 years old, zero comments, no labels or maintainer interaction; LXD preview since superseded by Multipass.
72%
#1839399 snapcraft not pulling snap from lxd container snapcraft (launchpad) open 2019 report that snapcraft 3.7.1 with --use-lxd built a snap inside the LXD container but never copied it back to the host. No labels, no maintainer interaction, 7 years old; the LXD provider has since been rewritten via craft-providers.
71%
#1896820 Snapcraft can't be run against a local or remote LXD project snapcraft (launchpad) open Feature request from the LXD maintainer for snapcraft to support LXD projects (local/remote) for isolated or cluster-based builds. ~6 years old, no labels, zero comments, no maintainer response. Overlaps with remote LXD work tracked in snapcraft#4454.
70%
#1825820 Snapcraft doesn't update the `snapcraft-project` disk source when the path is moved snapcraft (launchpad) open Snapcraft --use-lxd fails after moving the project directory because the LXD disk source 'snapcraft-project' still points at the old path. Open ~7.4 years with no labels, comments, or maintainer interaction; LXD build support has since been removed from snapcraft.
70%