← 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

Maintainer-authored cleanup: add a deprecation notice to `snapcraft pack <directory>` recommending `snap pack <directory>`, so the option can be removed in a future major release. Still not implemented; PR #6454 was closed unmerged.

Suggested action: keep open

Reason: Triaged by a maintainer (labels `Status: Triaged`, `Type: Cleanup`, internal ticket CRAFT-3233) and still valid: both `core22/lifecycle.py:220` and `lifecycle.py:167` still branch on `parsed_args.directory` and call `pack_snap()` with no warning — a repo-wide grep for `emit.deprecate` returns nothing, and the 9.1 release notes list only `ua-services` and non-SPDX licenses as deprecations. The fix PR #6454 was explicitly closed unmerged without reviewers, so it cannot be cited as resolving this. The work is well-scoped (emit `emit.deprecate(...)` in the two directory branches plus unit tests) with no architectural risk; impact is limited because this is a UX notice and the underlying path already works via `snap pack`.

Evaluated by: mr-cal-bot

Impact: 22 Quick Win: 16 Complexity: 12 Confidence: 88 Actionability: 82

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
stealth/space-bunny-alpha
Impact: 22
Quick Win: 16
Complexity: 12
Confidence: 88
Actionability: 82
keep open Maintainer-authored cleanup: add a deprecation notice to `snapcraft pack <directory>` recommending `snap pack <directory>`, so the option can be removed in a future major release. Still not implemented; PR #6454 was closed unmerged.
stealth/space-bunny-alpha
Impact: 28
Quick Win: 20
Complexity: 15
Confidence: 88
Actionability: 85
keep open Maintainer-filed cleanup task (Status: Triaged, Type: Cleanup) to emit a deprecation notice for `snapcraft pack <directory>` and point users to `snap pack <directory>`, paving the way for removal in a future major release.
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 22
Complexity: 10
Confidence: 85
Actionability: 80
keep open Add deprecation notice for `snapcraft pack <directory>` recommending `snap pack <directory>` instead, to prepare for removal in a future major release.
qwen/qwen3.8-27b
Impact: 25
Quick Win: 16
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.

Update history

Date Change
updated
updated

Related work

  • Related To: snapcraft#6454 (confidence 95%)

    PR 'feat(pack): deprecate packing a directory' was opened by @wak327 to fix this issue but was closed unmerged with no reviewers, so the change never landed and #4967 stays open.

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

    Report that `snapcraft pack <directory>` ignored its directory argument, fixed by commit 48483c4e3 (#4794); shows the directory-packing path is still actively maintained rather than already removed.

Related issues

No related issues found above the similarity threshold.