ubuntu / ubuntu-make

Easy setup of common tools for developers on Ubuntu.
GNU General Public License v3.0
1.2k stars 189 forks source link

Snap version 938 from latest/edge issues an error when querying its version. #671

Closed notetiene closed 1 year ago

notetiene commented 2 years ago

The latest umake snap package from the latest/edge channel doesn't print its version.

$ umake --version
Traceback (most recent call last):
  File "/snap/ubuntu-make/938/bin/umake", line 8, in <module>
    sys.exit(main())
  File "/snap/ubuntu-make/938/lib/python3.8/site-packages/umake/__init__.py", line 152, in main
    cli.main(parser)
  File "/snap/ubuntu-make/938/lib/python3.8/site-packages/umake/ui/cli/__init__.py", line 243, in main
    print(get_version())
  File "/snap/ubuntu-make/938/lib/python3.8/site-packages/umake/settings.py", line 37, in get_version
    version = open(os.path.join(os.path.dirname(__file__), 'version'), 'r', encoding='utf-8').read().strip()
FileNotFoundError: [Errno 2] No such file or directory: '/snap/ubuntu-make/938/lib/python3.8/site-packages/umake/version'

Querying snap for the version outputs the following:

$ snap list ubuntu-make 
Name         Version  Rev  Tracking     Publisher  Notes
ubuntu-make  master   938  latest/edge  didrocks   classic