-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 1.2.0 encounters an error when using the -f parameter #1059
Comments
Seems like the relative path is used after the working directory is changed. Interestingly, there is a "TODO Remove" comment above the directory change in line 1815. An alternative to deleting the line (maybe there is a reason why it wasn't removed) is making the filenames absolute: @@ -1790,6 +1790,7 @@ class PodmanCompose:
sys.exit(1)
# make absolute
relative_files = files
+ files = [os.path.realpath(filename) for filename in files]
filename = files[0]
project_name = args.project_name
# no_ansi = args.no_ansi This works on my machine™. |
run into same bug today steps to reproduce: echo -e "services:\n a:\n image: hello-world" > c.yml
podman-compose -f c.yml up #works
mkdir subdir
mv c.yml subdir/
podman-compose -f subdir/c.yml up #fails removing https://github.com/containers/podman-compose/blob/main/podman_compose.py#L1818 fixes the issue |
I can confirm that with so it seems to be introduced by something else between |
The same issue happened with the
When running podman-compose/podman_compose.py Lines 1921 to 1922 in 9cbc4c1
That change seems to be introduced in 10th of April 2023 but I was unable to reproduce it with podman-compose v1.2.0: 91bc6eb |
See containers/podman-compose#1059 Signed-off-by: Alexander Bokovoy <[email protected]>
See containers/podman-compose#1059 Signed-off-by: Alexander Bokovoy <[email protected]>
Looks like the old versions have been removed from brew. I was able to install version 1.1.0 with:
This works until a fix is released. |
This issue can be reproduced in
|
Describe the bug
In version 1.2.0, I encountered an error while using 'podman-compose -f lobe/compose.yaml pull', but it worked fine in version 1.1.0. Using the absolute path works normally, but using the relative path results in an error.
To Reproduce
Expected behavior
nomal pull
Actual behavior
What is the behavior you actually got and that should not happen.
Output
The text was updated successfully, but these errors were encountered: