-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/snap: allow normal snap --version on WSL 2 (#14198)
Commit 1adae13 ("sanity: refuse to try to do things on WSL.") disabled snap version from attempting to talk to snapd whenever WSL was detected, as WSL 1 didn't support enough of the Linux features for snapd to meaningfully operate. Ever since WSL 2 was released, this is now significantly different, with almost all of the features working out of the box. Adjust the condition to look for WSL 1 specifically and add missing tests checking both WSL 1 and WSL 2 behavior. Jira: https://warthogs.atlassian.net/browse/SNAPDENG-23939 Signed-off-by: Zygmunt Krynicki <[email protected]>
- Loading branch information
Showing
2 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters