"snap run --shell alias" doesn't work

Bug #1852814 reported by Zygmunt Krynicki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Triaged
Medium
Unassigned

Bug Description

Having used:

$ sudo snap install --classic --unaliased go_12 --channel=1.12/stable
$ sudo snap alias go_12 go-1.12

I can succesfully run:

snap run go-1.12 version

But I cannot run:

snap run --shell go-1.12

As this confuses the runner.

Revision history for this message
Claudio Matsuoka (cmatsuoka) wrote :

For consistency, shouldn't non-parallel install aliases also work with `snap run`?

Changed in snapd:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I think so but it could be regarded as a separate bug. A quick peek at the run code shows how the type of interaction is fractured and how unaliasing and instance analysis is not consistent. It is possible to fix it all in one go, perhaps, but it's always safer to just do it one by one.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.