You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running a snapcraft command fail if there is a file called snap in the pwd.
To Reproduce
touch snap snapcraft login
Environment
Snapcraft 8.6.0
snapcraft.yaml
n/a
Relevant log output
phelps@arch ~/f/tmp> ls
phelps@arch ~/f/tmp> touch snap
phelps@arch ~/f/tmp> snapcraft login
Traceback (most recent call last):
File "/snap/snapcraft/13008/bin/snapcraft", line 8, in<module>sys.exit(main())
File "/var/lib/snapd/snap/snapcraft/13008/lib/python3.10/site-packages/snapcraft/application.py", line 479, in main
app = create_app()
File "/var/lib/snapd/snap/snapcraft/13008/lib/python3.10/site-packages/snapcraft/application.py", line 455, in create_app
app = Snapcraft(
File "/var/lib/snapd/snap/snapcraft/13008/lib/python3.10/site-packages/snapcraft/application.py", line 104, in __init__
self._snapcraft_yaml_path: pathlib.Path | None = self._resolve_project_path(
File "/var/lib/snapd/snap/snapcraft/13008/lib/python3.10/site-packages/snapcraft/application.py", line 160, in _resolve_project_path
returnsuper()._resolve_project_path(project_dir / "snap")
File "/var/lib/snapd/snap/snapcraft/13008/lib/python3.10/site-packages/craft_application/application.py", line 325, in _resolve_project_path
return (project_dir / f"{self.app.name}.yaml").resolve(strict=True)
File "/var/lib/snapd/snap/snapcraft/13008/usr/lib/python3.10/pathlib.py", line 1077, in resolve
s = self._accessor.realpath(self, strict=strict)
File "/var/lib/snapd/snap/snapcraft/13008/bin/../usr/lib/python3.10/posixpath.py", line 396, in realpath
path, ok = _joinrealpath(filename[:0], filename, strict, {})
File "/var/lib/snapd/snap/snapcraft/13008/bin/../usr/lib/python3.10/posixpath.py", line 431, in _joinrealpath
st = os.lstat(newpath)
NotADirectoryError: [Errno 20] Not a directory: '/home/phelps/files/tmp/snap/snapcraft.yaml'
phelps@arch ~/f/tmp [1]> rm snap
phelps@arch ~/f/tmp> snapcraft login
Enter your Ubuntu One e-mail address and password.
If you do not have an Ubuntu One account, you can create one at https://snapcraft.io/accountz
Additional context
No response
The text was updated successfully, but these errors were encountered:
Bug Description
Running a snapcraft command fail if there is a file called snap in the pwd.
To Reproduce
touch snap
snapcraft login
Environment
Snapcraft 8.6.0
snapcraft.yaml
n/a
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: