snap info gets confused if there is a directory of the same name
Bug #1845533 reported by
Omer Akram
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Medium
|
John Lenton |
Bug Description
I have the latest snapd installed and I just found a weird behavior, whenever I try to run `snap info` command while in a location that contains a directory/file of the same name, the command line gets confused
```
om26er@chaotic:~$ ls
Android deskconnd-sock-dir deskconn.keys Desktop Documents Downloads Music Pictures Public scm snap Templates Videos
om26er@chaotic:~$ snap info Desktop
error: no snap found for "Desktop/"
```
om26er@chaotic:~$ apt-cache policy snapd
snapd:
Installed: 2.41+19.10.1
Candidate: 2.41+19.10.1
Version table:
*** 2.41+19.10.1 500
500 http://
100 /var/lib/
Changed in snapd: | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
assignee: | nobody → John Lenton (chipaca) |
Changed in snapd: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
actually, at first I thought this was the bug I recently fixed in master about 'snap info' getting confused by a directory existing with the same name as a snap in the store.
The issue you seem to be trying to report is different: it's snap info behaving as expected.
You asked it for information about a directory, that isn't a snap. What error did you expect to get?