Skip to content

Commit

Permalink
chore: pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau committed Jun 11, 2024
1 parent 5d5288a commit 28ac793
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions charmcraft/services/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,11 @@ class ImageService(craft_application.AppService):
_skopeo: utils.Skopeo
_docker: docker.DockerClient

def __init__(
self, app: craft_application.AppMetadata, services: craft_application.ServiceFactory
) -> None:
super().__init__(app, services)

self._skopeo_path = shutil.which("skopeo") or ""

@override
def setup(self) -> None:
"""Set up the image service."""
super().setup()
if not self._skopeo_path:
raise errors.CraftError(
"Could not find skopeo on the machine.",
)
logger.debug("skopeo path: %s", self._skopeo_path)
self._skopeo = utils.Skopeo(skopeo_path=self._skopeo_path)
self._skopeo = utils.Skopeo()
self._docker = docker.from_env()

def copy(
Expand Down

0 comments on commit 28ac793

Please sign in to comment.