Skip to content

Commit

Permalink
Clear stamps and cache when we recreate a container from an image
Browse files Browse the repository at this point in the history
  • Loading branch information
hartmans committed Feb 5, 2025
1 parent 1bdf4df commit 87a200c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion carthage/container.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2018, 2019, 2020, 2021, 2022, Hadron Industries, Inc.
# Copyright (C) 2018, 2019, 2020, 2021, 2022, 2025, Hadron Industries, Inc.
# Carthage is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation. It is distributed
Expand Down Expand Up @@ -64,6 +64,7 @@ async def async_ready(self):
vol = await self.ainjector(ContainerVolume,
clone_from=self.image,
name="containers/" + self.name)
self.clear_stamps_and_cache()
self.injector.add_provider(container_volume, vol)
self.volume = vol
await self.resolve_networking()
Expand Down

0 comments on commit 87a200c

Please sign in to comment.