snap <directory> is error prone
Bug #1583204 reported by
Gustavo Niemeyer
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Triaged
|
Wishlist
|
Sergio Schvezov |
Bug Description
Having "cd $dir; snapcraft snap" and "snapcraft snap $dir" behaving completely different and producing completely different results is extremely error prone. The latter should be a command of its on. Something like "snapcraft snap-content $dir".
Changed in snapcraft: | |
status: | Incomplete → Triaged |
importance: | Undecided → Wishlist |
assignee: | nobody → Sergio Schvezov (sergiusens) |
milestone: | none → 2.11 |
Changed in snapcraft: | |
milestone: | 2.12 → 2.13 |
Changed in snapcraft: | |
milestone: | 2.13 → 2.14 |
Changed in snapcraft: | |
milestone: | 2.13 → none |
To post a comment you must log in.
I am in favor of this fwiw. I would really like to decouple things that belong more to the life cycle and things that are more of an out of band thing.
Take as another example the upload command (should a snap built with the snap command be uploaded without specifying a file? I think it should as we will know if it is indeed the snap you want to upload).
That said, I am not so sure we can change this and kill `snapcraft snap <dir>` as it would break our existing users and API (the cli API that is).
We can implement it and add a deprecation message to the former one though.