-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
snap: add track 'latest' if no track is specified #6835
snap: add track 'latest' if no track is specified #6835
Conversation
See https://snapcraft.io/docs/channels for more details.
This PR needs a changelog fragment :) |
Darn, you're always faster than me on these things :-P |
Looks good to me. If nobody objects by the end of this week, I'll merge. |
Backport to stable-6: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply dc0d004 on top of patchback/backports/stable-6/dc0d00452fa6070f01c618ad95f3edc44209af4b/pr-6835 Backporting merged PR #6835 into main
🤖 @patchback |
@russoz thanks! |
Backport to stable-7: 💚 backport PR created✅ Backport PR branch: Backported as #6888 🤖 @patchback |
* snap: add track 'latest' if no track is specified See https://snapcraft.io/docs/channels for more details. * snap: assume track latest if channel does not specify it (cherry picked from commit dc0d004)
… track is specified (#6888) snap: add track 'latest' if no track is specified (#6835) * snap: add track 'latest' if no track is specified See https://snapcraft.io/docs/channels for more details. * snap: assume track latest if channel does not specify it (cherry picked from commit dc0d004) Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
…s#6835) * snap: add track 'latest' if no track is specified See https://snapcraft.io/docs/channels for more details. * snap: assume track latest if channel does not specify it
SUMMARY
When a channel is specified but not using a track, the default track
latest
is added. thesnap list
command does that, so this is necessary to match the requested channel with the already installed ones.See https://snapcraft.io/docs/channels for more details.
A test case has been added to the unit tests to assert that scenario works.
Fixes #6821
ISSUE TYPE
COMPONENT NAME
snap