Skip to content

Commit 08d57dc

Browse files
committed
fix: use clean_path for home directory
1 parent eef0aaf commit 08d57dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

silverback/_build_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from typing import Union
66

77
import click
8+
from ape.utils.os import clean_path
89

910
DOCKERFILE_CONTENT = """
1011
FROM ghcr.io/apeworx/silverback:stable
@@ -65,6 +66,7 @@ def generate_dockerfiles(self, path: PathType):
6566
"""
6667
Will generate a file based on path type
6768
"""
69+
raise NotImplementedError(f"Path type {type(path)} not supported")
6870

6971
@generate_dockerfiles.register
7072
def _(self, path: FilePath):
@@ -93,7 +95,7 @@ def _build_helper(self, dockerfile_c: str):
9395
dockerfile_path = Path.cwd() / ".silverback-images" / self.dockerfile_name
9496
dockerfile_path.parent.mkdir(exist_ok=True)
9597
dockerfile_path.write_text(dockerfile_c.strip() + "\n")
96-
click.echo(f"Generated {dockerfile_path}")
98+
click.echo(f"Generated {clean_path(dockerfile_path)}")
9799

98100
def _check_for_requirements(self, dockerfile_content):
99101
if (Path.cwd() / "requirements.txt").exists():

0 commit comments

Comments
 (0)