← Back to issue list

Deprecate `snapcraft pack <directory>`

View original Github issue

Metadata

Project
snapcraft
Number
#4967
Type
issue
State
open
Author
mr-cal
Labels
Status: Triaged Type: Cleanup
Created
Updated
Closed

Current evaluation

Cleanup task to add a deprecation notice for `snapcraft pack <directory>`, recommending `snap pack <directory>` instead, ahead of removal in a major release. Triaged with a Jira ticket (CRAFT-3233); the notice is not yet in the code.

Suggested action: keep open

Reason: The issue is triaged (Status: Triaged, Type: Cleanup), authored by maintainer mr-cal, and has an internal Jira ticket (CRAFT-3233), so it is acknowledged and valid. I verified the current PackCommand in snapcraft/commands/lifecycle.py still packs a directory via pack_snap with no deprecation notice, so the work is genuinely outstanding and the command is still relevant. It is a scoped cleanup, not stale or irrelevant, so it should stay open.

Impact: 25 Quick Win: 16.25 Staleness: 55 Complexity: 35 Confidence: 75 Support Request: 0

Issue body

### What needs to get done Add a deprecation notice for `snapcraft pack <directory>` and recommend using `snap pack <directory>`. ### Why it needs to get done So that `snapcraft pack <directory>` can be removed in an upcoming major snapcraft release. This command is being removed because: * it does not support packing components * it is a poor UX because it has a different behavior than `snapcraft pack` and does not execute the craft-parts lifecycle

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 25
Quick Win: 16.25
Staleness: 55
Complexity: 35
Confidence: 75
Support Request: 0
keep open Cleanup task to add a deprecation notice for `snapcraft pack <directory>`, recommending `snap pack <directory>` instead, ahead of removal in a major release. Triaged with a Jira ticket (CRAFT-3233); the notice is not yet in the code.
qwen/qwen3.6-35b-a3b
Staleness: 80
Complexity: 10
Confidence: 90
Support Request: 0
keep open Issue requests adding a deprecation notice for snapcraft pack <directory> in favor of snap pack <directory> to enable future removal. Currently triaged and awaiting implementation.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 15
Confidence: 80
Support Request: 0
keep open Maintainer-requested cleanup to add a deprecation notice for snapcraft pack directory before its removal in a major release. Currently triaged but inactive for over 5 months.
qwen3.6-35b-a3b-mtp-q6
Staleness: 65
Complexity: 15
Confidence: 90
Support Request: 0
keep open Deprecate snapcraft pack directory in favor of snap pack directory due to poor UX and lack of component support. The cleanup task is triaged and awaiting implementation to enable removal in the next major release.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft#4769 (confidence 55%)

    Bug where `snapcraft pack <directory>` does not respect the directory arg to locate snapcraft.yaml; reinforces the rationale that the directory-packing behavior is inconsistent and worth deprecating.

Related issues

No related issues found above the similarity threshold.