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
{{ message }}
This repository was archived by the owner on Feb 10, 2021. It is now read-only.
The method podman/libs/images.py#Images.build runs os.walk, and expects it to return a list of files from context_directory. It actually yields a 3-tuple (dirpath, dirnames, filenames) as described here. Later, when trying to add files into the tar archive (line 176), the program fails with error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/edd/.local/lib/python3.8/site-packages/podman/libs/images.py", line 189, in build
tar.addfile(tar.gettarinfo(fileobj=open(name)))
TypeError: expected str, bytes or os.PathLike object, not tuple
While we're at it, how is this code expected to function when encountering an empty directory?