Skip to content

Commit 3a17fad

Browse files
authored
Merge branch '0.2.x' into issue-93-use-same-template-version-in-links
2 parents 8732687 + e94a83a commit 3a17fad

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

minos/cli/api/new.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def new_microservice(name: str) -> None:
4545
processor = TemplateProcessor.from_fetcher(fetcher, microservice_path, defaults={"name": name})
4646
processor.render()
4747

48+
(microservice_path / ".build_docker_compose.txt").unlink()
49+
4850

4951
@app.callback()
5052
def callback():

minos/cli/templating/fetchers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
)
2222

2323
TEMPLATE_URL: Final[str] = "https://github.com/minos-framework/minos-templates/releases/download"
24-
TEMPLATE_VERSION: Final[str] = "v0.1.2.dev4"
24+
TEMPLATE_VERSION: Final[str] = "v0.1.2.dev6"
2525

2626

2727
class TemplateFetcher:

tests/test_cli/test_api/test_new.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def test_new_project(self) -> None:
4545
def test_new_microservice(self) -> None:
4646
with TemporaryDirectory() as tmp_dir_name:
4747
path = Path(tmp_dir_name) / "product"
48+
path.mkdir()
49+
(path / ".build_docker_compose.txt").touch()
4850
with patch("minos.cli.TemplateProcessor.render") as mock:
4951
result = CliRunner().invoke(app, ["new", "microservice", str(path)])
5052

0 commit comments

Comments
 (0)