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
Describe the bug
I am trying to remove a service using an override file.
Clearing an entire service works fine, using !reset null, but removing the associated depends_on parameter fails.
Expected behavior
I expect to see a parsed config without the db service and the 'depends_on' in the frontend service
Actual behavior
podman-compose exits with the following error message:
Traceback (most recent call last):
File "/root/.local/bin/podman-compose", line 3999, in <module>
main()
File "/root/.local/bin/podman-compose", line 3995, in main
asyncio.run(async_main())
File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/root/.local/bin/podman-compose", line 3991, in async_main
await podman_compose.run()
File "/root/.local/bin/podman-compose", line 1982, in run
self._parse_compose_file()
File "/root/.local/bin/podman-compose", line 2091, in _parse_compose_file
content = normalize(content)
^^^^^^^^^^^^^^^^^^
File "/root/.local/bin/podman-compose", line 1735, in normalize
normalize_service(service)
File "/root/.local/bin/podman-compose", line 1723, in normalize_service
for k, v in deps.items():
^^^^^^^^^^
Describe the bug
I am trying to remove a service using an override file.
Clearing an entire service works fine, using !reset null, but removing the associated depends_on parameter fails.
Using the feature recently added in #1189
To Reproduce
Steps to reproduce the behavior:
podman compose -f docker-compose.yml -f override.yml config
Expected behavior
I expect to see a parsed config without the db service and the 'depends_on' in the frontend service
Actual behavior
podman-compose exits with the following error message:
Output
Additional context
!reset
on the service parses correctly, the issue appears when using !reset on the 'depends_on' parameter.!reset []
and!reset {}
, but the effect was the sameThe text was updated successfully, but these errors were encountered: