Skip to content

Commit 176d5ef

Browse files
committed
Fixed: Flet CLI crashes if git is not installed
Fix #1581
1 parent 3010bfb commit 176d5ef

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
* Fix `flet pack` command on macOS ([#1580](https://github.com/flet-dev/flet/issues/1580))
66
* Fixed: Assets dir and manifest does not work ([#1573](https://github.com/flet-dev/flet/issues/1573))
7+
* Fixed: Flet CLI crashes if `git` is not installed ([#1581](https://github.com/flet-dev/flet/issues/1581))
78

89
## 0.8.1
910

package/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
* Fix `flet pack` command on macOS ([#1580](https://github.com/flet-dev/flet/issues/1580)).
44
* Fixed: Assets dir and manifest does not work ([#1573](https://github.com/flet-dev/flet/issues/1573))
5+
* Fixed: Flet CLI crashes if `git` is not installed ([#1581](https://github.com/flet-dev/flet/issues/1581))
56

67
## 0.8.1
78

sdk/python/packages/flet/src/flet/cli/commands/create.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import argparse
22
from pathlib import Path
33

4-
from copier.main import Worker
54
from flet.cli.commands.base import BaseCommand
65
from flet_core.utils import slugify
76

@@ -39,6 +38,8 @@ def add_arguments(self, parser: argparse.ArgumentParser) -> None:
3938
)
4039

4140
def handle(self, options: argparse.Namespace) -> None:
41+
from copier.main import Worker
42+
4243
template_data = {"template_name": options.template}
4344

4445
out_dir = Path(options.output_directory)

0 commit comments

Comments
 (0)